diff --git a/app/common/rational.cpp b/app/common/rational.cpp index 9aa20426c..34d627572 100644 --- a/app/common/rational.cpp +++ b/app/common/rational.cpp @@ -72,7 +72,7 @@ void rational::fix_signs() void rational::reduce() { - if (!isNull()) { + if (!isNull() && denom_ != 1) { // Euclidean often fails if numbers are negative, we abs it and re-neg it later if necessary bool neg = numer_ < 0;