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


On Fri, 27 Apr 2012 23:03:41 +0200, Christina Roßmanith <ChrRossmanith@gmx.de> wrote:

Hi,

there are two "case XML_RECT" blocks in svgreader.cxx in two different visitors. The ShapeWritingVisitor scales rx and ry with width and height, the ShapeRenderingVisitor does not apply any scaling. I guess both visitors should treat rx and ry the same way?

Looking at basegfx::tools::createPolygonFromRect implementation
(in basegfx/source/polygon/b2dpoligontools.cxx) the routine expects
radii (rx, ry) in the [0,1] range and if not they are cropped
to 0 or 1. So the scaled input should be the correct one.
However I think it is better if you perform some visual test.

-- Marco


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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.