From f4b8aaaffc8d582f01723b3727a09a958663598d Mon Sep 17 00:00:00 2001 From: Zr Date: Tue, 25 Mar 2025 14:15:12 +0800 Subject: [PATCH] fix: fix direction --- src/SkyplotWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SkyplotWidget.cpp b/src/SkyplotWidget.cpp index a057bfc..268f2f4 100644 --- a/src/SkyplotWidget.cpp +++ b/src/SkyplotWidget.cpp @@ -144,7 +144,9 @@ void SkyplotWidget::paint(QPainter *painter) painter->drawText(textRect, Qt::AlignCenter, QString("%1").arg(360.0 - (c * 90.0) - angle)); } else { - painter->drawText(textRect, Qt::AlignCenter, QString("N")); + // directions + static const QString directions[] = {"N","W","S","E"}; + painter->drawText(textRect, Qt::AlignCenter, QString(directions[c])); } } }