Skip to content

Commit

Permalink
Distance to move needs to stay a double
Browse files Browse the repository at this point in the history
When multiplying the delta to the nudge, it was saving the result
into the integer delta, removing all precision from the nudge value.

Fixes https://gitlab.com/inkscape/inkscape/-/issues/5308
  • Loading branch information
doctormo committed Nov 22, 2024
1 parent a42eac5 commit 9e93426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/tools/select-tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,9 +833,9 @@ bool SelectTool::root_handler(CanvasEvent const &event)

bool const rotated = prefs->getBool("/options/moverotated/value", true);

int delta = 1;
double delta = 1.0;
if (mod_shift(event)) { // shift
delta = 10;
delta = 10.0;
}

bool screen = true;
Expand Down

0 comments on commit 9e93426

Please sign in to comment.