Commit 90e4af94 authored by claes's avatar claes

Bugfix in scale of image

parent b87cd4df
......@@ -407,9 +407,10 @@ int CnvToPs::print_image( char *filename)
if ( width * scalex > ps_cPageWidth - ps_cLeftMargin) {
x = ps_cPageWidth - width * scalex;
if ( x < 50) {
double scale_factor = (ps_cPageWidth - 50) / (width * scalex);
x = 50;
scalex = scalex * (ps_cPageWidth - 50) / (width * scalex);
scaley = scaley * (ps_cPageWidth - 50) / (width * scalex);
scalex = scalex * scale_factor;
scaley = scaley * scale_factor;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment