From f1652c257a3ac9938599d0c1faa665fb71172005 Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Wed, 26 Apr 2023 21:23:24 -0400 Subject: [PATCH] Fix: refresh canvas when pasting Broken in last commit by adding: if "ctrl" in key: # Don't interfere with Ctrl+C, Ctrl+V, etc. return --- paint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/paint.py b/paint.py index 71bcfc7..6f229a8 100755 --- a/paint.py +++ b/paint.py @@ -1940,6 +1940,7 @@ class PaintApp(App[None]): self.warning_message_box(_("Paint"), _("Not enough room to paste text.") + "\n\n" + _("Enlarge the text area and try again."), "ok") return textbox.contained_image.copy_region(source=pasted_image, target_region=paste_region) + self.canvas.refresh_scaled_region(textbox.region) return pasted_image = AnsiArtDocument.from_text(text) self.stop_action_in_progress()