Don't show "last position" marks in position gauge.
[enigma2.git] / lib / gui / epositiongauge.cpp
index 4785d7aff46462cf01ba435e9023f3ec14933b6b..b3ee5111348c04787ca864d834c6a2f166a41756 100644 (file)
@@ -126,13 +126,17 @@ int ePositionGauge::event(int event, void *data, void *data2)
                                        continue;
                                } else if (i->what == 1) /* out */
                                        out = i++->where;
-                               else /* mark */
+                               else if (i->what == 2) /* mark */
                                {
                                        int xm = scale(i->where);
                                        painter.setForegroundColor(gRGB(0xFF8080));
                                        painter.fill(eRect(xm - 2, 0, 4, s.height()));
                                        i++;
                                        continue;
+                               } else /* other marker, like last position */
+                               {
+                                       ++i;
+                                       continue;
                                }
                        }