From 7cd6d12730eb0d572fe88df9afacc4c8f9c4f0ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 9 Jan 2020 10:08:50 +0100 Subject: [PATCH] [apps/calculation] additional_outputs; change position of absolute value label in ComplexGraphView --- apps/calculation/additional_outputs/complex_graph_cell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/calculation/additional_outputs/complex_graph_cell.cpp b/apps/calculation/additional_outputs/complex_graph_cell.cpp index 022003e7f..b50438bcf 100644 --- a/apps/calculation/additional_outputs/complex_graph_cell.cpp +++ b/apps/calculation/additional_outputs/complex_graph_cell.cpp @@ -54,7 +54,7 @@ void ComplexGraphView::drawRect(KDContext * ctx, KDRect rect) const { // 'im(z)' label drawLabel(ctx, rect, 0.0f, imag, "im(θ)", Palette::Red, real >= 0.0f ? CurveView::RelativePosition::Before : CurveView::RelativePosition::After, CurveView::RelativePosition::None); // '|z|' label, the relative horizontal position of this label depends on the quadrant - drawLabel(ctx, rect, real/2.0f, imag/2.0f, "|z|", Palette::Red, real*imag >= 0.0f ? CurveView::RelativePosition::Before : CurveView::RelativePosition::After, CurveView::RelativePosition::After); + drawLabel(ctx, rect, real/2.0f, imag/2.0f, "|z|", Palette::Red, CurveView::RelativePosition::None, CurveView::RelativePosition::After); // 'arg(z)' label, the relative horizontal/vertical positions of this label depends on the quadrant CurveView::RelativePosition horizontalPosition = CurveView::RelativePosition::None; CurveView::RelativePosition verticalPosition = CurveView::RelativePosition::None;