Bookmark with compass heading is named 'heading' and should use the
bookmark icon.

Signed-off-by: Miika Turkia <[email protected]>
---
 qt-ui/profilegraphics.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index f826e02..d9755bf 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -1638,7 +1638,7 @@ QColor EventItem::getColor(const color_indice_t i)
 
 EventItem::EventItem(struct event *ev, QGraphicsItem* parent, bool grayscale): 
QGraphicsPixmapItem(parent), ev(ev), isGrayscale(grayscale)
 {
-       if(ev->name && strcmp(ev->name, "bookmark") == 0) {
+       if(ev->name && (strcmp(ev->name, "bookmark") == 0 || strcmp(ev->name, 
"heading") == 0)) {
                setPixmap( QPixmap(QString(":flag")).scaled(20, 20, 
Qt::KeepAspectRatio, Qt::SmoothTransformation));
        } else {
                setPixmap( QPixmap(QString(":warning")).scaled(20, 20, 
Qt::KeepAspectRatio, Qt::SmoothTransformation));
-- 
1.8.3.2

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to