Code

Fixed crash in the filter effects dialog on loading files with the unimplemented...
authornicholasbishop <nicholasbishop@users.sourceforge.net>
Fri, 18 Jan 2008 00:03:02 +0000 (00:03 +0000)
committernicholasbishop <nicholasbishop@users.sourceforge.net>
Fri, 18 Jan 2008 00:03:02 +0000 (00:03 +0000)
src/ui/dialog/filter-effects-dialog.cpp

index c274b6c10885a700fc1430644bef0ec37bf16ad1..8e6d678fc7febfaaf8d017d51a6a1edce2b207c2 100644 (file)
@@ -2133,12 +2133,14 @@ void FilterEffectsDialog::update_settings_sensitivity()
         SPFeComponentTransfer* ct = SP_FECOMPONENTTRANSFER(prim);
         const bool linear = ct->type == COMPONENTTRANSFER_TYPE_LINEAR;
         const bool gamma = ct->type == COMPONENTTRANSFER_TYPE_GAMMA;
-        //_ct_table->set_sensitive(ct->type == COMPONENTTRANSFER_TYPE_TABLE || ct->type == COMPONENTTRANSFER_TYPE_DISCRETE);
+
+        // Component transfer not yet implemented
+        /*_ct_table->set_sensitive(ct->type == COMPONENTTRANSFER_TYPE_TABLE || ct->type == COMPONENTTRANSFER_TYPE_DISCRETE);
         _ct_slope->set_sensitive(linear);
         _ct_intercept->set_sensitive(linear);
         _ct_amplitude->set_sensitive(gamma);
         _ct_exponent->set_sensitive(gamma);
-        _ct_offset->set_sensitive(gamma);
+        _ct_offset->set_sensitive(gamma);*/
     }
 }