Re: postscript output is rotated 90 degrees? (bulia byak)
Thanks, Bulia, for applying the patch! I'd like to request the following further patch. You made w and h doubles, rather than ints, which makes sense, but the fabs is incorrect, because we have w<0 or h<0 on an empty document (I think they're -200000000 or something). That's why there is the sanity check later on.
361,362c361,362 < double w = fabs (d.x1 - d.x0); // width and height of bounding box, in points < double h = fabs (d.y1 - d.y0); ---
double w = (double) (d.x1 - d.x0); // width and height of bounding box, in points double h = (double) (d.y1 - d.y0);
364c364 < ((int) w > 0 && (int) h > 0) // empty documents fail this sanity check ---
(w > 0. && h > 0.) // empty documents fail this sanity check, have w<0, h<0
On Sun, 12 Dec 2004 11:08:44 +0000, Ben Crowell <crowell04@...327...> wrote:
Thanks, Bulia, for applying the patch! I'd like to request the following further patch. You made w and h doubles, rather than ints, which makes sense, but the fabs is incorrect, because we have w<0 or h<0 on an empty document (I think they're -200000000 or something). That's why there is the sanity check later on.
Done, thanks
P.S. If you plan to keep contributing to Inkscape I can give you developer access
participants (2)
-
Ben Crowell
-
bulia byak