mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
Corrected an error that has been in the magic code forever, in which
if a GDS (CIF) layer is dependent on, and only on, a templayer or layers that get hierarchically processed, it will not get added to the list of layers needing hierarchical processing, and therefore end up not being generated in the output.
This commit is contained in:
@@ -1846,6 +1846,24 @@ CIFTechFinal()
|
||||
}
|
||||
}
|
||||
|
||||
/* Added by Tim, 5/16/19 */
|
||||
/* Layers that depend on hierarchically generated layers */
|
||||
/* (i.e., templayers) must themselves be hierarchically */
|
||||
/* processed. */
|
||||
|
||||
for (i = 0; i < style->cs_nLayers; i++)
|
||||
{
|
||||
TileTypeBitMask ourDepend, mmask;
|
||||
|
||||
ourDepend = DBZeroTypeBits;
|
||||
for (op = style->cs_layers[i]->cl_ops; op != NULL; op = op->co_next)
|
||||
TTMaskSetMask(&ourDepend, &op->co_cifMask);
|
||||
|
||||
TTMaskAndMask3(&mmask, &ourDepend, &style->cs_hierLayers);
|
||||
if (!TTMaskIsZero(&mmask))
|
||||
TTMaskSetType(&style->cs_hierLayers, i);
|
||||
}
|
||||
|
||||
/* Added by Tim, 10/18/04 */
|
||||
|
||||
/* Go through the layer operators looking for those that */
|
||||
|
||||
Reference in New Issue
Block a user