From 89a896d6277f5f017552a76a70a9a722d5ff9454 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 16 Jun 2020 21:24:32 -0300 Subject: [PATCH] Fix Insert Text to use the sprite transparent color in indexed mode (fix #2444) --- src/app/commands/cmd_paste_text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/commands/cmd_paste_text.cpp b/src/app/commands/cmd_paste_text.cpp index 88bc78aa3..61889cb49 100644 --- a/src/app/commands/cmd_paste_text.cpp +++ b/src/app/commands/cmd_paste_text.cpp @@ -189,7 +189,8 @@ void PasteTextCommand::onExecute(Context* ctx) image.get(), NULL, sprite->pixelFormat(), render::Dithering(), rgbmap, sprite->palette(editor->frame()), - false, 0)); + false, + sprite->transparentColor())); } // TODO we don't support pasting text in multiple cels at the