mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
Corrected the error in which "splitpaint" and "spliterase" are
incorrectly applied to locked layers, as reported by Mark Martin in issue #95 on github.
This commit is contained in:
@@ -2732,6 +2732,9 @@ CmdSplit(w, cmd)
|
||||
if (!CmdParseLayers(cmd->tx_argv[2], &mask1))
|
||||
return;
|
||||
|
||||
/* Remove any inactive layers */
|
||||
TTMaskAndMask(&mask1, &DBActiveLayerBits);
|
||||
|
||||
if ((direction = GeoNameToPos(cmd->tx_argv[1], FALSE, TRUE)) < 0)
|
||||
return;
|
||||
|
||||
@@ -2842,6 +2845,9 @@ CmdSplitErase(w, cmd)
|
||||
if (TTMaskIsZero(&mask))
|
||||
return;
|
||||
|
||||
/* Remove any inactive layers */
|
||||
TTMaskAndMask(&mask, &DBActiveLayerBits);
|
||||
|
||||
direction = (direction >> 1) - 1;
|
||||
dir = (direction & 0x1) ? 0 : TT_DIRECTION;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user