12 Dec
2004
12 Dec
'04
5:23 a.m.
In the long term, the right solution would probably be to add a portrait/landscape bit to the SVG file.
- The bit should be set to landscape if the user creates the file using File>New>...landscape.
- There should be a way to control the bit using the GUI.
- The rotation should also apply to bitmap printing, not just PS/EPS.
- The Print and Save As dialogs should probably also allow the rotation to be turned on or off.
Agreed. Someone will eventually need to write a much larger patch to implement all this.
pageLandscape = ( (w>0 && h>0) // empty documents fail this sanity check && (w>h) // implies, but does not prove, the user wanted landscape && (w>600) // approximate maximum printable width of an A4 )
I think that makes sense. Now automatic rotation will only be triggered for drawings that are wider than the page. I applied this patch. Thank you.
(As you see, making patches is not difficult at all :)