Fixed a bug that caused a segfault on stopping playback with minimized
authorterminatorX <>
Tue, 6 Aug 2002 21:57:31 +0000 (21:57 +0000)
committerterminatorX <>
Tue, 6 Aug 2002 21:57:31 +0000 (21:57 +0000)
audio panels that were never exposed before - Alex

terminatorX/src/tX_widget.c

index ad672f037ff68291d68f2fc4ffa081c4f26f3b3a..e3240f280e5b136be139c279e10eecdbce097cff 100644 (file)
@@ -378,7 +378,7 @@ extern "C" {
 
        x = tx->lastpos;
 
 
        x = tx->lastpos;
 
-       if (x >= 0) {
+       if (x >= FR_SIZE) {
            gdk_gc_set_foreground(gc, &tx->bg);
            gdk_draw_line(window, gc, x, FR_SIZE, x, ymax);
 
            gdk_gc_set_foreground(gc, &tx->bg);
            gdk_draw_line(window, gc, x, FR_SIZE, x, ymax);
 
@@ -416,7 +416,7 @@ extern "C" {
 
        x = tx->lastpos;
 
 
        x = tx->lastpos;
 
-       if (x >= 0) {
+       if (x >= FR_SIZE) {
            gdk_gc_set_foreground(gc, &tx->bg);
            gdk_draw_line(window, gc, x, FR_SIZE, x, ymax);
 
            gdk_gc_set_foreground(gc, &tx->bg);
            gdk_draw_line(window, gc, x, FR_SIZE, x, ymax);