From: nicholasbishop Date: Fri, 18 Jan 2008 00:03:02 +0000 (+0000) Subject: Fixed crash in the filter effects dialog on loading files with the unimplemented... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8325961422c94c523f20578061fba64e7c83fc94;p=inkscape.git Fixed crash in the filter effects dialog on loading files with the unimplemented component transfer filter. --- diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index c274b6c10..8e6d678fc 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -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);*/ } }