about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-04-02 05:48:18 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-04-02 05:48:18 +0000
commitd2fc5ad51b1cc493e62efe7ccaaf9ef083faeb1a (patch)
tree0cdddd2ee91f7f21222715fe389449119dd34c9d /editor
parent0a802ffc86ce826c77150db000667f17e685c5a7 (diff)
downloadnetpbm-mirror-d2fc5ad51b1cc493e62efe7ccaaf9ef083faeb1a.tar.gz
netpbm-mirror-d2fc5ad51b1cc493e62efe7ccaaf9ef083faeb1a.tar.xz
netpbm-mirror-d2fc5ad51b1cc493e62efe7ccaaf9ef083faeb1a.zip
Fix resolution of conflicting -wpercent and -wvalue
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@610 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/pnmnorm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/pnmnorm.c b/editor/pnmnorm.c
index 9048ee04..8a4bb351 100644
--- a/editor/pnmnorm.c
+++ b/editor/pnmnorm.c
@@ -403,7 +403,7 @@ computeEndValues(FILE *             const ifp,
             computeTopPercentile(hist, maxval, cols*rows, cmdline.wpercent, 
                                  &percentWvalue);
             if (cmdline.wvalueSpec)
-                unlimitedWvalue = MIN(percentWvalue, cmdline.wvalue);
+                unlimitedWvalue = MAX(percentWvalue, cmdline.wvalue);
             else
                 unlimitedWvalue = percentWvalue;
         }