[apps/curve_view] Fix typo

The labels would not float on the right of the display
This commit is contained in:
Léa Saviot
2020-03-31 15:02:20 +02:00
committed by EmilieNumworks
parent 620ef3f570
commit bd0b9f8a4a

View File

@@ -374,7 +374,7 @@ void CurveView::drawLabelsAndGraduations(KDContext * ctx, KDRect rect, Axis axis
position = positionLabel(horizontalCoordinate, labelPosition, textSize, RelativePosition::Before, RelativePosition::None);
if (floatingLabels == FloatingPosition::Min) {
position = KDPoint(k_labelMargin, position.y());
} else if (floatingLabels == FloatingPosition::Min) {
} else if (floatingLabels == FloatingPosition::Max) {
position = KDPoint(Ion::Display::Width - textSize.width() - k_labelMargin, position.y());
}
}