mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 18:02:52 +02:00
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:
+6
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user