From cb0d89c09e27f35758b8bd201335b296fd82fee7 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 5 Jun 2020 04:30:39 +1000 Subject: [PATCH] rational: print double rather than rational to debug Doubles are mostly used here anyway. --- app/common/rational.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/common/rational.cpp b/app/common/rational.cpp index 6fa8206ef..30463fa7b 100644 --- a/app/common/rational.cpp +++ b/app/common/rational.cpp @@ -387,6 +387,9 @@ OLIVE_NAMESPACE_EXIT QDebug operator<<(QDebug debug, const OLIVE_NAMESPACE::rational &r) { + return debug.space() << r.toDouble(); + /* debug.nospace() << r.numerator() << "/" << r.denominator(); return debug.space(); + */ }