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:
parent
c7e59ef461
commit
e670dd9720
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue