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:
Tim Edwards 2021-11-24 12:01:45 -05:00
parent c7e59ef461
commit e670dd9720
1 changed files with 6 additions and 0 deletions

View File

@ -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;