limit precision of (now unsnapped) selection rectangle dimensions in status line

This commit is contained in:
stefan schippers 2024-11-13 23:05:46 +01:00
parent de9c40af65
commit 819e2f0969
1 changed files with 1 additions and 1 deletions

View File

@ -2212,7 +2212,7 @@ int rstate; /* (reduced state, without ShiftMask) */
dbg(1, "ui_state=%d deltax=%g\n", xctx->ui_state, xctx->deltax);
if(xctx->ui_state) {
if(abs(mx-xctx->mx_save) > 8 || abs(my-xctx->my_save) > 8 ) {
my_snprintf(str, S(str), "mouse = %.16g %.16g - selected: %d w=%.16g h=%.16g",
my_snprintf(str, S(str), "mouse = %.16g %.16g - selected: %d w=%.6g h=%.6g",
xctx->mousex_snap, xctx->mousey_snap,
xctx->lastsel ,
xctx->mousex_snap-xctx->mx_double_save, xctx->mousey_snap-xctx->my_double_save