From 56ad7628195b9adb3c827ed156e2399ac29b78fc Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Thu, 20 Apr 2023 14:51:06 -0400 Subject: [PATCH] Fix mismatch between file opening behavior of Open dialog vs CLI arg --- paint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paint.py b/paint.py index 65a0e1b..79fc349 100644 --- a/paint.py +++ b/paint.py @@ -1253,7 +1253,7 @@ class PaintApp(App): content = f.read() # f is out of scope in go_ahead() def go_ahead(): try: - new_image = AnsiArtDocument.from_ansi(content) + new_image = AnsiArtDocument.from_text(content) except Exception as e: # "This is not a valid bitmap file, or its format is not currently supported." # string from MS Paint doesn't apply well here,