diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2016-04-09 23:15:09 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2016-04-26 16:42:27 +0000 |
commit | 32cec4ca8bf1e09dd33aa461984e8e8ae34f4a7c (patch) | |
tree | 5591a63de12179505a0e7a4870632754585152d3 /include/drawinglayer | |
parent | 4905c8bf7834b1ca79139c62f4e8b0672e9ddc13 (diff) |
tdf#48066 render stroke-miterlimit correctly in SVG import
The property stroke-miterlimit is transported to the renderers
via a new member mfMiterMinimumAngle in class LineAttribute
Several drawPolyLine methods are adapted. This patch does not
include changes in MetaAction. Presentation mode, printing, and
PDF-export is still wrong.
Corrected LineJoinMiter to LineJoinBevel in canvas, that s closer
to NONE. Removed DrawPolyLine method without MiterMinimumAngle
and adapted calls accordingly.
Change-Id: I6bcd24add5d85c4d9a39e3788e0682091c5fc9c4
Reviewed-on: https://gerrit.libreoffice.org/23946
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'include/drawinglayer')
-rw-r--r-- | include/drawinglayer/attribute/lineattribute.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/drawinglayer/attribute/lineattribute.hxx b/include/drawinglayer/attribute/lineattribute.hxx index a405ebce540c..a2ad66d5fe3f 100644 --- a/include/drawinglayer/attribute/lineattribute.hxx +++ b/include/drawinglayer/attribute/lineattribute.hxx @@ -22,6 +22,7 @@ #include <drawinglayer/drawinglayerdllapi.h> +#include <basegfx/numeric/ftools.hxx> // for F_PI180 #include <basegfx/vector/b2enums.hxx> #include <com/sun/star/drawing/LineCap.hpp> #include <o3tl/cow_wrapper.hxx> @@ -56,7 +57,8 @@ namespace drawinglayer const basegfx::BColor& rColor, double fWidth = 0.0, basegfx::B2DLineJoin aB2DLineJoin = basegfx::B2DLineJoin::Round, - css::drawing::LineCap aLineCap = css::drawing::LineCap_BUTT); + css::drawing::LineCap aLineCap = css::drawing::LineCap_BUTT, + double fMiterMinimumAngle = 15.0 * F_PI180); LineAttribute(); LineAttribute(const LineAttribute& rCandidate); LineAttribute& operator=(const LineAttribute& rCandidate); @@ -73,6 +75,7 @@ namespace drawinglayer double getWidth() const; basegfx::B2DLineJoin getLineJoin() const; css::drawing::LineCap getLineCap() const; + double getMiterMinimumAngle() const; }; } // end of namespace attribute } // end of namespace drawinglayer |