about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
Diffstat (limited to 'editor')
-rw-r--r--editor/pamfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/pamfunc.c b/editor/pamfunc.c
index 3c7b298d..03cf2a42 100644
--- a/editor/pamfunc.c
+++ b/editor/pamfunc.c
@@ -368,7 +368,7 @@ applyFunction(struct CmdlineInfo const cmdline,
                 outSample = inSample ^ cmdline.u.mask;
                 break;
             case FN_NOT:
-                outSample = ~inSample;
+                outSample = ~inSample & outpam.maxval;
                 break;
             case FN_SHIFTLEFT:
                 outSample =