From 253122dc78a1bd2b63c13271191ee121cb8cb112 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 11 Jan 2023 21:07:50 -0500 Subject: [PATCH] BITMAP_BASE: update original when converting to greyscale Fixes https://gitlab.com/kicad/code/kicad/-/issues/13487 --- common/bitmap_base.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/bitmap_base.cpp b/common/bitmap_base.cpp index 9b547a3ac9..1d6b4ad102 100644 --- a/common/bitmap_base.cpp +++ b/common/bitmap_base.cpp @@ -393,6 +393,7 @@ void BITMAP_BASE::ConvertToGreyscale() if( m_image ) { *m_image = m_image->ConvertToGreyscale(); + *m_originalImage = m_originalImage->ConvertToGreyscale(); rebuildBitmap(); } }