From a48691828d80e4a5710564bce564c99d7aa13860 Mon Sep 17 00:00:00 2001 From: bryce Date: Wed, 21 Feb 2007 10:03:55 +0000 Subject: [PATCH] Adjusting how items in the marker menu are selected, so the recently selected marker at the top of the menu shows as the selection. --- src/dialogs/stroke-style.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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++; } -- 2.30.2