Skip to content

Commit 14d91dc

Browse files
author
zhenya15.markov@gmail.com
committed
Fix: added distance difference by module
1 parent c733be5 commit 14d91dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qplotmarker_distance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void QPlotMarkerDistance::setCoordPen(const QPen & pen)
5454

5555
qreal QPlotMarkerDistance::markersDistance(QPlotMarker * one, QPlotMarker * other)
5656
{
57-
return other->markerValue() - one->markerValue();
57+
return std::abs( other->markerValue() - one->markerValue() );
5858
}
5959

6060
void QPlotMarkerDistance::update()

0 commit comments

Comments
 (0)