From 2fec4dafdaa7fbe18e97b9a49474c202631e3d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 17 May 2025 06:53:16 +0200 Subject: [PATCH] Show recommended tracks orientation --- src/map/ENC/mapdata.cpp | 2 ++ src/map/ENC/style.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/map/ENC/mapdata.cpp b/src/map/ENC/mapdata.cpp index 924bb393..2f62a8e0 100644 --- a/src/map/ENC/mapdata.cpp +++ b/src/map/ENC/mapdata.cpp @@ -525,6 +525,8 @@ MapData::Line::Line(uint type, const QVector &path, _label = QString::fromLatin1(_attr.value(VALDCO)); else if (type == LNDELV) _label = QString::fromLatin1(_attr.value(ELEVAT)); + else if (type == RECTRC) + _label = QString::fromLatin1(_attr.value(ORIENT)); else _label = QString::fromLatin1(_attr.value(OBJNAM)); } diff --git a/src/map/ENC/style.cpp b/src/map/ENC/style.cpp index 9dd5a6ac..b6f60647 100644 --- a/src/map/ENC/style.cpp +++ b/src/map/ENC/style.cpp @@ -411,6 +411,7 @@ void Style::lineStyle(qreal ratio) Qt::SolidLine)); _lines[TYPE(I_WTWAXS)] = Line(QPen(QColor(0, 0, 0), 0, Qt::DashLine)); _lines[SUBTYPE(RECTRC, 1)] = Line(QPen(QColor(0, 0, 0), 0, Qt::SolidLine)); + _lines[SUBTYPE(RECTRC, 1)].setTextFontSize(Small); _lines[SUBTYPE(RECTRC, 2)] = Line(QPen(QColor(0, 0, 0), 0, Qt::DashLine)); _lines[SUBTYPE(RCRTCL, 1)] = Line(QPen(QColor(0xeb, 0x49, 0xeb), 0, Qt::SolidLine));