From 1a774e92d1e9283d9557fcf301024e5cbd2b2c80 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 17 Jul 2020 12:38:21 -0400 Subject: [PATCH] Corrected an error pointed out by Sylvain Munaut in which the "plow" command fails for the tutorial tut3d cell due to a missing initialization of the cd_cellPlane record in DBCellCopyDefBody(). This was missed in the implementation of "bplane", and was not checked because the routine is only called from the "plow" command routines. --- VERSION | 2 +- database/DBcellsubr.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 04e6cffe..e1b0db6e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.34 +8.3.35 diff --git a/database/DBcellsubr.c b/database/DBcellsubr.c index 94d02efb..d9e6ee8c 100644 --- a/database/DBcellsubr.c +++ b/database/DBcellsubr.c @@ -104,7 +104,7 @@ DBDescendSubcell(use, xMask) * * Copies the contents of the CellDef pointed to by sourceDef into the * CellDef pointed to by destDef. Only the planes, labels, flags, - * use-id hash table, and bounding box are copied. + * cell plane, use-id hash table, and bounding box are copied. * * Results: * None. @@ -131,6 +131,8 @@ DBCellCopyDefBody(sourceDef, destDef) for (i = 0; i < MAXPLANES; i++) destDef->cd_planes[i] = sourceDef->cd_planes[i]; + destDef->cd_cellPlane = sourceDef->cd_cellPlane; + /* Be careful to update parent pointers in the children of dest. * Don't allow interrupts to wreck this. */