Code

Minor fix of pointer check.
authorJon A. Cruz <jon@joncruz.org>
Tue, 13 Apr 2010 01:41:04 +0000 (18:41 -0700)
committerJon A. Cruz <jon@joncruz.org>
Tue, 13 Apr 2010 01:41:04 +0000 (18:41 -0700)
src/ege-select-one-action.cpp

index 6de22495d0fe0c2f0902f2b2ae8130a353944435..50967ecb28e4f86100cb99d788ae5e278023d7de 100644 (file)
@@ -575,7 +575,7 @@ GtkWidget* create_tool_item( GtkAction* action )
                         g_object_set( G_OBJECT(obj), act->private_data->iconProperty, iconId, NULL );
                     }
 
-                    if ( act->private_data->iconProperty >= 0 ) {
+                    if ( act->private_data->iconProperty ) {
                         /* TODO get this string to be set instead of hardcoded */
                         if ( act->private_data->iconSize >= 0 ) {
                             g_object_set( G_OBJECT(obj), "iconSize", act->private_data->iconSize, NULL );