Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi Christina,

I have seen you patch at Gerrit now.

I think, that SvgAspectRatio::createLinearMapping is the wrong place to constrain the scaling because this method is used in svgimagenode.cxx and svgstyleattributes.cxx too. I think, that the decision whether to keep aspect ratio or not, should be made in the node itself. Have you tried to set the default settings explicitly in the constructor of SvgSvgNode?

Kind regards
Regina



Christina Roßmanith schrieb:
Hi,

the problem described here ->
https://bugs.freedesktop.org/show_bug.cgi?id=64125 is caused by a
missing width and height attribute of the SVG given as an example. So,
what would we expect given a ViewBox attribute when importing a graphic?

What I'd expect is that the aspect ratio is kept and a reasonable
scaling is applied in order to fill a page, table cell or whatever. And
that the little green squares (handles?) behave like a bounding box for
the graphic content. Is that correct?

What I've achieved so far is the correct scaling. What I'm looking for
is where the total size of the graphic is still determined wrong (see
attached screenshot) -> little green squares are more like DIN A4 than
the ViewBox size.

Christina


_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.