mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Gerbview: fix broken behavior for deprecated command IPPOS and IPNEG
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21715
This commit is contained in:
parent
6ab6283e2e
commit
45166bf5c3
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user