From bd0b9f8a4a067eb10d023c554b4f8ac0dab6da6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 31 Mar 2020 15:02:20 +0200 Subject: [PATCH] [apps/curve_view] Fix typo The labels would not float on the right of the display --- apps/shared/curve_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shared/curve_view.cpp b/apps/shared/curve_view.cpp index da15f9daa..5082cf26f 100644 --- a/apps/shared/curve_view.cpp +++ b/apps/shared/curve_view.cpp @@ -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()); } }