From a8fcca13ee2342a707f30930398ccf0539a8546a Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 1 Jun 2021 10:25:34 -0400 Subject: [PATCH] Corrected an error in the implementation of the CIF "mask-hints" operator that failed to set cifplane to curplane before drawing into it. This can cause the "mask-hints" layers to vanish, or worse, cause a segfault. --- VERSION | 2 +- cif/CIFgen.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index cae37761..49b7564b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.171 +8.3.172 diff --git a/cif/CIFgen.c b/cif/CIFgen.c index db9f7609..da5875be 100644 --- a/cif/CIFgen.c +++ b/cif/CIFgen.c @@ -4896,13 +4896,14 @@ CIFGenLayer(op, area, cellDef, origDef, temps, hier, clientdata) TxError("%s: Cannot read rectangle values.\n", propname); break; } + cifPlane = curPlane; cifScale = (CIFCurStyle) ? CIFCurStyle->cs_scaleFactor : 1; bbox.r_xbot *= cifScale; bbox.r_xtop *= cifScale; bbox.r_ybot *= cifScale; bbox.r_ytop *= cifScale; cifScale = 1; - DBNMPaintPlane(cifPlane, CIF_SOLIDTYPE, &bbox, + DBNMPaintPlane(curPlane, CIF_SOLIDTYPE, &bbox, CIFPaintTable, (PaintUndoInfo *)NULL); for (j = 0; j < 4; j++) {