]> Devoid-pointer.net GitWeb - anyanka.git/commitdiff
Mark the error message about value index being out of range because this
authorMichal Malý <madcatxster@devoid-pointer.net>
Sat, 7 Mar 2015 16:06:53 +0000 (17:06 +0100)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sat, 7 Mar 2015 16:06:53 +0000 (17:06 +0100)
can be triggered by rounding errors on the far end of the chart and it
is handled correctly.

signalcontroller.cpp

index f1ea0ebd4dd203f5e133b2b3af78829f5e726c2b..d1ffc55837fa34893bffc3dd871e7ff28b581b11 100644 (file)
@@ -231,7 +231,7 @@ Signal::TimeValuePair SignalController::getXYValues(const double x)
 {
   size_t idx = relToIdx(x);
   if (idx >= m_signal->count()-1) {
-    Logger::log(Logger::Level::CRITICAL, ME_SENDER_STR, __QFUNC__ + " idx value " + QString::number(idx) + " out of bounds!");
+    Logger::log(Logger::Level::DEBUG, ME_SENDER_STR, __QFUNC__ + QString(" idx value %1 out of bounds").arg(idx));
     return Signal::TimeValuePair(0, 0);
   }