Gerbview: fix broken behavior for deprecated command IPPOS and IPNEG

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21715
This commit is contained in:
jean-pierre charras 2025-09-11 14:30:50 +02:00
parent 6ab6283e2e
commit 45166bf5c3

View File

@ -671,8 +671,7 @@ bool GERBER_FILE_IMAGE::ExecuteRS274XCommand( int aCommand, char* aBuff,
break; break;
case IMAGE_POLARITY: case IMAGE_POLARITY:
// These commands are deprecated since 2012. // Note: these commands IPPOS and IPNEG are deprecated since 2012.
// So do nothing and prompt the user about this command
if( strncasecmp( aText, "NEG", 3 ) == 0 ) if( strncasecmp( aText, "NEG", 3 ) == 0 )
{ {
m_ImageNegative = true; m_ImageNegative = true;
@ -688,7 +687,6 @@ bool GERBER_FILE_IMAGE::ExecuteRS274XCommand( int aCommand, char* aBuff,
// actual effect. Just skip it. // actual effect. Just skip it.
} }
ok = false;
break; break;
case LOAD_POLARITY: case LOAD_POLARITY: