Comment 3 for bug 1461346

Revision history for this message
su_v (suv-lp) wrote :

With stable Inkscape 0.91, the proposed patch
- works as expected for SVG files which only omit 'height', but define 'width' for the root <svg> node.
- does not help for earlier failure (to determine 'x') with SVG files which omit either only 'width' or both attributes (width, height), but define a viewBox attribute.

It seems more likely to me that third-party SVG files omit both attributes, rather than define only 'width' but not 'height' -> inkex.py eventually should handle all cases.

Not that with current trunk (which at the moment always and unconditionally adds a viewBox attribute if not defined, and in that case also any missing 'width' or 'height' attribute), the tests might differ for cases which originally do not define a viewBox attribute.