Skip to content

Commit

Permalink
1.2
Browse files Browse the repository at this point in the history
just another update with a minor bugfix
  • Loading branch information
zvezdochiot committed Nov 15, 2018
1 parent 67c53b9 commit ddf4026
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Dewarping with a regular calibration point grid
https://forum.diybookscanner.org/viewtopic.php?f=19&t=2589
GNU GPL Version 3
14 Aug 2013
16 Aug 2013

Version 1.2 of ppmunwarp

just another update with a minor bugfix

The version 1.1 of ppmunwarp with PPI features

Expand Down
10 changes: 5 additions & 5 deletions ppmunwarp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <math.h>
#include <new>

#define VERSION "1.1"
#define VERSION "1.2"

// ----------------------------------------------------------------------------

Expand Down Expand Up @@ -1649,10 +1649,10 @@ void Parameter::operator()(int argc,char *argv[]) {
else if (doNumber) {
char *end;
long z = strtol(arg,&end,(doNumber == &pointColor ? 16 : 10));
if (z <= 0 || z >
(doNumber == &gridMargin ? 4 :
doNumber == &gridScale ? 10 :
doNumber == &pointColor ? 0xffffff : 100)) Usage(1);
if (z < (doNumber != &gridMargin) ||
z > (doNumber == &gridMargin ? 4 :
doNumber == &gridScale ? 10 :
doNumber == &pointColor ? 0xffffff : 100)) Usage(1);
*doNumber = int(z);
doNumber = 0; }
else if (doReal) {
Expand Down

0 comments on commit ddf4026

Please sign in to comment.