@@ -133,7 +133,7 void VisualizationGraphWidget::onRangeChanged(const QCPRange &t1, const QCPRange | |||||
133 | variableDateTimeWithTolerance.m_TEnd += tolerance; |
|
133 | variableDateTimeWithTolerance.m_TEnd += tolerance; | |
134 | } |
|
134 | } | |
135 | if (variableDateTime.m_TEnd > dateTime.m_TEnd) { |
|
135 | if (variableDateTime.m_TEnd > dateTime.m_TEnd) { | |
136 |
auto diffStartToKeepDelta = |
|
136 | auto diffStartToKeepDelta = variableDateTime.m_TStart - dateTime.m_TStart; | |
137 | dateTime.m_TEnd = variableDateTime.m_TEnd - diffStartToKeepDelta; |
|
137 | dateTime.m_TEnd = variableDateTime.m_TEnd - diffStartToKeepDelta; | |
138 | // Tolerance have to be added to the left |
|
138 | // Tolerance have to be added to the left | |
139 | // add 10% tolerance for left (start) side |
|
139 | // add 10% tolerance for left (start) side |
General Comments 0
You need to be logged in to leave comments.
Login now