From: joncruz Date: Sat, 26 Apr 2008 07:16:15 +0000 (+0000) Subject: Fixed setting property at wrong time X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f487c6e531d14d8dc217d746b7576b064dc3a44d;p=inkscape.git Fixed setting property at wrong time --- diff --git a/src/ege-select-one-action.cpp b/src/ege-select-one-action.cpp index 463011990..20967c9e7 100644 --- a/src/ege-select-one-action.cpp +++ b/src/ege-select-one-action.cpp @@ -577,7 +577,9 @@ GtkWidget* create_tool_item( GtkAction* action ) if ( act->private_data->iconProperty >= 0 ) { /* TODO get this string to be set instead of hardcoded */ - g_object_set( G_OBJECT(obj), "iconSize", act->private_data->iconSize, NULL ); + if ( act->private_data->iconSize >= 0 ) { + g_object_set( G_OBJECT(obj), "iconSize", act->private_data->iconSize, NULL ); + } } ract = GTK_RADIO_ACTION(obj);