Comment 3 for bug 1671691

Revision history for this message
Tom Peterson (tompete) wrote :

Regarding old Inkscape documents (pre 0.92) that cannot properly set display units:

-Adding this line to the 'svg id' node (root node) in the XML editor fixes the issue for me:
viewBox="0 0 279.4 215.90001"

In other words, the viewBox attribute is missing in documents that are converted from pre-092 to current/0.92. I'm not certain how flexible those viewBox values are, but either leaving blank or setting all to ZERO did not work. I've had to use the values pasted above for it to work.

e.g. (see last line)
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   width="11in"
   height="8.5in"
   version="1.1"
   id="svg12"
   sodipodi:docname="DisplayUnitTest.svg"
   inkscape:version="0.92.1 r15371"
   viewBox="0 0 279.4 215.90001">