diff -r d1b0aa40db91 -r a834e43a57da src/miscallenous.cpp --- a/src/miscallenous.cpp Sun Aug 30 05:30:17 2015 +0300 +++ b/src/miscallenous.cpp Sun Aug 30 15:01:10 2015 +0300 @@ -109,10 +109,10 @@ double Grid::Snap (double value, const Grid::Config type) { double snapvalue = (type == Coordinate) ? *CurrentGrid().coordinateSnap : *CurrentGrid().angleSnap; - double mult = floor (Abs (value / snapvalue)); + double mult = floor (qAbs (value / snapvalue)); double out = mult * snapvalue; - if (Abs (value) - (mult * snapvalue) > snapvalue / 2) + if (qAbs (value) - (mult * snapvalue) > snapvalue / 2) out += snapvalue; if (value < 0)