Code

Adjusting how items in the marker menu are selected, so the recently
authorbryce <bryce@users.sourceforge.net>
Wed, 21 Feb 2007 10:03:55 +0000 (10:03 +0000)
committerbryce <bryce@users.sourceforge.net>
Wed, 21 Feb 2007 10:03:55 +0000 (10:03 +0000)
selected marker at the top of the menu shows as the selection.

src/dialogs/stroke-style.cpp

index 0d22a90f7647ce3df824decbcf551ad40ffad750..d7827fdda40f18fd3fa36dc507a745a2bdffd2c4 100644 (file)
@@ -1740,10 +1740,8 @@ ink_marker_menu_set_current(SPObject *marker, GtkOptionMenu *mnu)
         for (; kids != NULL; kids = kids->next) {
             gchar *mark = (gchar *) g_object_get_data(G_OBJECT(kids->data), "marker");
             if ( mark && strcmp(mark, markname) == 0 ) {
-                if ( mark_is_stock && !strcmp((gchar *) g_object_get_data(G_OBJECT(kids->data), "stockid"), "true"))
-                    markpos = i;
-                if ( !mark_is_stock && !strcmp((gchar *) g_object_get_data(G_OBJECT(kids->data), "stockid"), "false"))
-                    markpos = i;
+                markpos = i;
+                break;
             }
             i++;
         }