dont allow recursive polygon placements (complete or abort before starting new)

This commit is contained in:
stefan schippers 2024-03-01 12:19:15 +01:00
parent a554ee0afa
commit 2f9d9e1755
2 changed files with 1 additions and 2 deletions

View File

@ -1692,7 +1692,7 @@ int rstate; /* (reduced state, without ShiftMask) */
xctx->ui_state |= START_SYMPIN;
break;
}
if(key=='p' /* && !xctx->ui_state */ && rstate==0) /* start polygon, 20171115 */
if(key=='p' && !(xctx->ui_state & STARTPOLYGON) && rstate==0) /* start polygon */
{
if(xctx->semaphore >= 2) break;
dbg(1, "callback(): start polygon\n");

View File

@ -1089,7 +1089,6 @@ void select_arc(int c, int i, unsigned short select_mode, int fast)
}
if(xctx->arc[c][i].sel == SELECTED) set_first_sel(ARC, i, c);
/*if( xctx->arc[c][i].sel == (SELECTED1|SELECTED2|SELECTED3|SELECTED4)) xctx->arc[c][i].sel = SELECTED; */
xctx->need_reb_sel_arr=1;
}