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.
This commit is contained in:
Tim Edwards 2020-07-17 12:38:21 -04:00
parent 838c9b840d
commit 1a774e92d1
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
8.3.34
8.3.35

View File

@ -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.
*/