summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2008-01-18 00:03:02 +0000
committernicholasbishop <nicholasbishop@users.sourceforge.net>2008-01-18 00:03:02 +0000
commitf3195ba9e00101277edc850376f58c9df8ca594f (patch)
tree4f40f20673efda0de78633298fd62376ea10e46e /src
parentremoving feTile and feComponentTransfer from UI (diff)
downloadinkscape-f3195ba9e00101277edc850376f58c9df8ca594f.tar.gz
inkscape-f3195ba9e00101277edc850376f58c9df8ca594f.zip
Fixed crash in the filter effects dialog on loading files with the unimplemented component transfer filter.
(bzr r4545)
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/filter-effects-dialog.cpp6
1 files changed, 4 insertions, 2 deletions
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);*/
}
}