Date:2014-02-02 06:33:42 (10 years 1 month ago)
Author:Werner Almesberger
Commit:453f64e4fe4e3ea491194047453042b6d1fd9c38
Message:cameo/fped2d2z.pl: hack: maintain decimal point across flipping

Files: cameo/fped2d2z.pl (1 diff)

Change Details

cameo/fped2d2z.pl
7474    undef $t;
7575    for $s (split(/\n/, $z{$z})) {
7676        if ($s =~ /^(-?[0-9]*\.[0-9]*)\s+(-?[0-9]*\.[0-9]*)/) {
77            $s = (($xmax+$xmin)/2-$1)." $2" if $flip_y;
77            $s = sprintf("%.6f", ($xmax+$xmin)/2-$1)." $2"
78                if $flip_y;
7879
7980            # re-scan, so that we can flip on both axes
8081            die unless $s =~

Archive Download the corresponding diff file

Branches:
master



interactive