Corrected an error in the dual CIF style (output & drc) method where

the output style is not set back to what it was before if there are
no cif rules in the default DRC style.
This commit is contained in:
Tim Edwards 2019-11-25 11:07:59 -05:00
parent 7373d55c55
commit b90166985d
1 changed files with 6 additions and 2 deletions

View File

@ -513,7 +513,7 @@ drcCifCheck(arg)
TxPrintf("Loading DRC CIF style.\n");
CIFCurStyle = NULL;
CIFLoadStyle(drcNeedStyle);
if (drcCifValid == FALSE)
if (drcCifValid != FALSE)
CIFCurStyle = CIFSaveStyle;
else
drcCifStyle = CIFCurStyle;
@ -525,7 +525,11 @@ drcCifCheck(arg)
}
CIFCurStyle = drcCifStyle;
}
if (drcCifValid == FALSE) return;
if (drcCifValid == FALSE)
{
CIFCurStyle = CIFSaveStyle;
return;
}
scale = drcCifStyle->cs_scaleFactor;
cifrect = *checkRect;