diff --git a/source/RobotAPI/gui-plugins/KinematicUnitPlugin/KinematicUnitGuiPlugin.cpp b/source/RobotAPI/gui-plugins/KinematicUnitPlugin/KinematicUnitGuiPlugin.cpp index df8b4464ca32c3d66814536d7aa5268da9dc49be..dd84c5187f4aef63311d0db54d17128c5143a98d 100644 --- a/source/RobotAPI/gui-plugins/KinematicUnitPlugin/KinematicUnitGuiPlugin.cpp +++ b/source/RobotAPI/gui-plugins/KinematicUnitPlugin/KinematicUnitGuiPlugin.cpp @@ -1274,7 +1274,7 @@ void KinematicUnitWidgetController::highlightCriticalValues() continue; } - const float currentValue = it->second; + const float currentValue = std::fabs(it->second); smoothedValue = 0.5f*currentValue + 0.5f*smoothedValue;