Fixed and re-enabled 'end-wire when user drags mouse cursor from an instance pin'. This feature was introduced from upstream repo and was previously disabled to prevent a bug that occurred in 'orthogonal_wiring' mode.

This commit is contained in:
Chayan Deb 2025-02-03 12:32:09 +05:30
parent 0eeef833fc
commit 01e0744244
1 changed files with 4 additions and 4 deletions

View File

@ -4519,10 +4519,10 @@ int rstate; /* (reduced state, without ShiftMask) */
}
/* end wire creation when dragging in intuitive interface from an inst pin ow wire endpoint */
/*else if(state == Button1Mask && xctx->intuitive_interface
* && (xctx->ui_state & STARTWIRE) && !(xctx->ui_state & MENUSTART)) {*/
/* if(end_place_move_copy_zoom()) break;*/
/*}*/
else if(state == Button1Mask && xctx->intuitive_interface && !tclgetboolvar("persistent_command")
&& (xctx->ui_state & STARTWIRE) && !(xctx->ui_state & MENUSTART)) {
if(end_place_move_copy_zoom()) break;
}
/* end intuitive_interface copy or move */
if(xctx->ui_state & STARTCOPY && xctx->drag_elements) {