Activity log for bug #1473955

Date Who What changed Old value New value Message
2015-07-13 11:31:51 su_v bug added bug
2015-07-13 11:34:59 su_v description When changing the page width and/or height via 'Document Properties > Page > Custom Size' and entering a value of '0' (zero) as intermediary step, the corresponding '0' in the document's 'viewBox' attribute gets "sticky" i.e. does not update if the page width or height is set to a positive value later on. Viewing such a file in other SVG viewers (e.g. web browsers) causes the content to be not rendered visible: «A negative value for <width> or <height> is an error (see Error processing). A value of zero disables rendering of the element.» http://www.w3.org/TR/SVG11/coords.html#ViewBoxAttribute Side-effect: python-based extensions will fail with a ZeroDivisionError in getDocumentUnit() when applied in such a document (this failure was originally reported on irc by Qcoder00). Steps to reproduce: 1) launch inkscape (default prefs, default new document) 2) draw a large rectangle (e.g. as large as the page) 3) open 'File > Document Properties' 4) set width to '0' 5) set width to '210' (same as before) 6) save 7) view the file e.g. in Firefox Expected result: The rectangle drawn on the page is visible in the browser. Actual result: The browser displays an "empty" file (rendering is disabled). Reproduced with Inkscape 0.91 r13725 and 0.91+devel r14242 on OS X 10.7.5. When changing the page width and/or height via 'Document Properties > Page > Custom Size' and entering a value of '0' (zero) as intermediary step, the corresponding '0' in the document's 'viewBox' attribute gets "sticky" i.e. does not update if the page width or height is set to a positive value later on. Viewing such a file in other SVG viewers (e.g. web browsers) causes the content to be not rendered visible: «A negative value for <width> or <height> is an error (see Error processing). A value of zero disables rendering of the element.» http://www.w3.org/TR/SVG11/coords.html#ViewBoxAttribute Side-effect: python-based extensions will fail with a ZeroDivisionError in getDocumentUnit() when applied in such a document (this failure was originally reported on irc by Qcoder00). Steps to reproduce: 1) launch inkscape (default prefs, default new document) 2) draw a large rectangle (e.g. as large as the page) 3) open 'File > Document Properties > Page' 4) set Width in 'Custom size' to '0' 5) set Width in 'Custom size' to '210' (same as before) 6) save 7) view the file e.g. in Firefox Expected result: The rectangle drawn on the page is visible in the browser. Actual result: The browser displays an "empty" file (rendering is disabled). Reproduced with Inkscape 0.91 r13725 and 0.91+devel r14242 on OS X 10.7.5.
2015-07-13 11:41:57 su_v attachment added 1473955-sticky-zero-width-in-viewBox.svg https://bugs.launchpad.net/inkscape/+bug/1473955/+attachment/4428280/+files/1473955-sticky-zero-width-in-viewBox.svg
2015-07-13 14:20:59 su_v inkscape: importance Undecided Medium
2015-07-13 14:20:59 su_v inkscape: status New Fix Committed
2015-07-13 14:20:59 su_v inkscape: milestone 0.92
2015-07-13 14:20:59 su_v inkscape: assignee Tavmjong Bah (tavmjong-free)
2015-07-13 14:23:37 su_v attachment added 1473955-backport-r14243-091x-v1.diff https://bugs.launchpad.net/inkscape/+bug/1473955/+attachment/4428336/+files/1473955-backport-r14243-091x-v1.diff
2015-07-13 14:23:55 su_v tags ui viewbox backport-proposed ui viewbox
2015-09-29 07:08:04 Launchpad Janitor branch linked lp:inkscape/0.91.x
2015-09-29 07:10:48 su_v inkscape: milestone 0.92 0.91.1
2015-09-29 07:10:58 su_v tags backport-proposed ui viewbox ui viewbox
2017-01-28 20:42:37 jazzynico inkscape: status Fix Committed Fix Released
2017-01-28 20:42:37 jazzynico inkscape: milestone 0.91.1 0.92