Don't show "last position" marks in position gauge.
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 10 Nov 2008 02:36:06 +0000 (03:36 +0100)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 10 Nov 2008 02:36:06 +0000 (03:36 +0100)
fixes #41

lib/gui/epositiongauge.cpp

index 4785d7a..b3ee511 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;
                                }
                        }