Code

now that selection description includes style (filtered, clipped), we need to update...
[inkscape.git] / src / ege-select-one-action.cpp
index 463011990b6e8bab969d205f57234a9e61131369..5c552a6e762a952d9f7e8b2e302313626eda4be0 100644 (file)
@@ -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);
@@ -730,7 +732,7 @@ void combo_changed_cb( GtkComboBox* widget, gpointer user_data )
 {
     EgeSelectOneAction* act = EGE_SELECT_ONE_ACTION(user_data);
     gint newActive = gtk_combo_box_get_active(widget);
-    if (newActive != act->private_data->active) {
+    if (newActive != act->private_data->active && newActive != -1) {
         g_object_set( G_OBJECT(act), "active", newActive, NULL );
     }
 }