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:
parent
838c9b840d
commit
1a774e92d1
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue