From: bryce Date: Wed, 21 Feb 2007 10:03:55 +0000 (+0000) Subject: Adjusting how items in the marker menu are selected, so the recently X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a48691828d80e4a5710564bce564c99d7aa13860;p=inkscape.git Adjusting how items in the marker menu are selected, so the recently selected marker at the top of the menu shows as the selection. --- diff --git a/src/dialogs/stroke-style.cpp b/src/dialogs/stroke-style.cpp index 0d22a90f7..d7827fdda 100644 --- a/src/dialogs/stroke-style.cpp +++ b/src/dialogs/stroke-style.cpp @@ -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++; }