summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/bitmap/levelChannel.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-07-22 23:06:21 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-31 14:50:38 +0000
commit8f7a3a637f6a465e78e88490a03f539f0d8fdc1a (patch)
treee503502036ba4268921ded10a81ab3b4157d89d5 /src/extension/internal/bitmap/levelChannel.cpp
parentMove error classes to Parameter where they belong (diff)
downloadinkscape-8f7a3a637f6a465e78e88490a03f539f0d8fdc1a.tar.gz
inkscape-8f7a3a637f6a465e78e88490a03f539f0d8fdc1a.zip
Refactor a lot of the parameter handling code
Many fixes, improvements and simplifications to existing code. Implements the first part of the changes discussed in https://gitlab.com/inkscape/inkscape/issues/333
Diffstat (limited to 'src/extension/internal/bitmap/levelChannel.cpp')
-rw-r--r--src/extension/internal/bitmap/levelChannel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extension/internal/bitmap/levelChannel.cpp b/src/extension/internal/bitmap/levelChannel.cpp
index 714293d28..384408cf6 100644
--- a/src/extension/internal/bitmap/levelChannel.cpp
+++ b/src/extension/internal/bitmap/levelChannel.cpp
@@ -37,7 +37,7 @@ LevelChannel::applyEffect(Magick::Image* image) {
void
LevelChannel::refreshParameters(Inkscape::Extension::Effect* module) {
- _channelName = module->get_param_enum("channel");
+ _channelName = module->get_param_optiongroup("channel");
_black_point = module->get_param_float("blackPoint");
_white_point = module->get_param_float("whitePoint");
_mid_point = module->get_param_float("midPoint");