This commit is contained in:
stefan schippers 2025-01-26 17:44:00 +01:00
parent 8086b5581e
commit 80a22c78a8
3 changed files with 3 additions and 5 deletions

View File

@ -2472,7 +2472,6 @@ int rstate; /* (reduced state, without ShiftMask) */
} }
break; break;
} }
dbg(1, "ui_state=%d deltax=%g\n", xctx->ui_state, xctx->deltax);
/* update status bar messages */ /* update status bar messages */
if(xctx->ui_state) { if(xctx->ui_state) {

View File

@ -944,7 +944,7 @@ void move_objects(int what, int merge, double dx, double dy)
xctx->move_flip = 0;xctx->move_rot = 0; xctx->move_flip = 0;xctx->move_rot = 0;
xctx->ui_state|=STARTMOVE; xctx->ui_state|=STARTMOVE;
} }
if(what & ABORT) /* draw objects while moving */ if(what & ABORT) /* abort operation */
{ {
xctx->paste_from = 0; xctx->paste_from = 0;
draw_selection(xctx->gctiled,0); draw_selection(xctx->gctiled,0);
@ -958,9 +958,8 @@ void move_objects(int what, int merge, double dx, double dy)
xctx->ui_state &= ~STARTMOVE; xctx->ui_state &= ~STARTMOVE;
update_symbol_bboxes(0, 0); update_symbol_bboxes(0, 0);
} }
if(what & RUBBER) /* abort operation */ if(what & RUBBER) /* draw objects while moving */
{ {
xctx->x2=xctx->mousex_snap;xctx->y_2=xctx->mousey_snap; xctx->x2=xctx->mousex_snap;xctx->y_2=xctx->mousey_snap;
draw_selection(xctx->gctiled,0); draw_selection(xctx->gctiled,0);
xctx->deltax = xctx->x2-xctx->x1; xctx->deltay = xctx->y_2 - xctx->y_1; xctx->deltax = xctx->x2-xctx->x1; xctx->deltay = xctx->y_2 - xctx->y_1;

View File

@ -1018,6 +1018,7 @@ typedef struct {
/* move.c */ /* move.c */
double rx1, rx2, ry1, ry2; double rx1, rx2, ry1, ry2;
short move_rot; short move_rot;
double x1, y_1, x2, y_2, deltax, deltay;
/* connect by kissing enable flag */ /* connect by kissing enable flag */
int connect_by_kissing; int connect_by_kissing;
/* redraw_w_a_l_r_p_z_rubbers() */ /* redraw_w_a_l_r_p_z_rubbers() */
@ -1026,7 +1027,6 @@ typedef struct {
int kissing; int kissing;
short move_flip; short move_flip;
int manhattan_lines; int manhattan_lines;
double x1, y_1, x2, y_2, deltax, deltay;
int movelastsel; int movelastsel;
short rotatelocal; short rotatelocal;
/* new_wire, new_line, new_rect*/ /* new_wire, new_line, new_rect*/