mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
Found another couple of places where the environment variable
HOME was checked but no check was made on whether or not the result was NULL. This resolves issue #490 in the github issue tracker. Also: Modified the way that "select visible" works to check if labels and/or cells are rendered visible in the window. If not, then they are not selected. Previously, cell instances and labels would be selected whether or not they were visible. This resolves issue #503 in the github issue tracker.
This commit is contained in:
+10
-2
@@ -635,9 +635,17 @@ cmdSelectArea(
|
||||
int i;
|
||||
for (i = 0; i < DBNumUserLayers; i++)
|
||||
{
|
||||
if((TTMaskHasType(&mask, i)) && !(TTMaskHasType(&crec->dbw_visibleLayers, i)))
|
||||
if ((TTMaskHasType(&mask, i)) &&
|
||||
!(TTMaskHasType(&crec->dbw_visibleLayers, i)))
|
||||
TTMaskClearType(&mask, i);
|
||||
}
|
||||
|
||||
/* Remove L_CELL and L_LABEL if crec->dbw_flags indicates that
|
||||
* they are not visible in the layout window.
|
||||
*/
|
||||
|
||||
if (!(crec->dbw_flags & DBW_SEELABELS)) TTMaskClearType(&mask, L_LABEL);
|
||||
if (!(crec->dbw_flags & DBW_SEECELLS)) TTMaskClearType(&mask, L_CELL);
|
||||
}
|
||||
SelectArea(&scx, &mask, crec->dbw_bitmask, globmatch);
|
||||
}
|
||||
@@ -1027,7 +1035,7 @@ CmdSelect(
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
* Select everything under the box, perhaps looking only at
|
||||
* particular layers, but only if its visible.
|
||||
* particular layers, but only if it's visible.
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user