From 00ae91d6b51f14f6a2e32b8cad34c33f88d52244 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 11 Sep 2025 14:30:50 +0200 Subject: [PATCH] Gerbview: fix broken behavior for deprecated command IPPOS and IPNEG Fixes https://gitlab.com/kicad/code/kicad/-/issues/21715 (cherry picked from commit 45166bf5c3477f229d6011506508aa22e4bc0f61) --- gerbview/rs274x.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gerbview/rs274x.cpp b/gerbview/rs274x.cpp index d300d82884..fb6fc69c4f 100644 --- a/gerbview/rs274x.cpp +++ b/gerbview/rs274x.cpp @@ -671,8 +671,7 @@ bool GERBER_FILE_IMAGE::ExecuteRS274XCommand( int aCommand, char* aBuff, break; case IMAGE_POLARITY: - // These commands are deprecated since 2012. - // So do nothing and prompt the user about this command + // Note: these commands IPPOS and IPNEG are deprecated since 2012. if( strncasecmp( aText, "NEG", 3 ) == 0 ) { m_ImageNegative = true; @@ -688,7 +687,6 @@ bool GERBER_FILE_IMAGE::ExecuteRS274XCommand( int aCommand, char* aBuff, // actual effect. Just skip it. } - ok = false; break; case LOAD_POLARITY: