diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-04-10 23:01:15 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2019-04-10 23:01:15 +0000 |
commit | 04be75d5e37d1604d41d4b1339b635e37dd2e5df (patch) | |
tree | 84eb3a7e5149fbe5c8d77e4844e5a978c7bb7108 /editor/pnmcrop.c | |
parent | d931c498be1345fbac654c1d0963b42cbce1649a (diff) | |
download | netpbm-mirror-04be75d5e37d1604d41d4b1339b635e37dd2e5df.tar.gz netpbm-mirror-04be75d5e37d1604d41d4b1339b635e37dd2e5df.tar.xz netpbm-mirror-04be75d5e37d1604d41d4b1339b635e37dd2e5df.zip |
Fix -bgcolor
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3593 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pnmcrop.c')
-rw-r--r-- | editor/pnmcrop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/pnmcrop.c b/editor/pnmcrop.c index 3f414e1b..ba8e9090 100644 --- a/editor/pnmcrop.c +++ b/editor/pnmcrop.c @@ -450,7 +450,9 @@ backgroundColor(FILE * const ifP, *ifP, which is described by 'cols', 'rows', 'maxval', and 'format'. 'backgroundChoice' is the method we are to use in determining the - background color. + background color. 'colorName' is the color we are to assume is + background in the case that 'backgroundChoice' says to use a particular + color and meangingless otherwise. Expect the file to be positioned to the start of the raster, and leave it positioned arbitrarily. @@ -465,7 +467,8 @@ backgroundColor(FILE * const ifP, background = pnm_blackxel(maxval, format); break; case BG_COLOR: - backgroundColorFmName(colorName, maxval, format); + background = + backgroundColorFmName(colorName, maxval, format); break; case BG_SIDES: background = @@ -479,9 +482,6 @@ backgroundColor(FILE * const ifP, background = background1Corner(ifP, rows, cols, maxval, format, corner); break; - - default: - pm_error("internal error"); } return background; |