diff options
author | Chr. Rossmanith <ChrRossmanith@gmx.de> | 2013-10-06 08:26:42 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-10-06 21:44:32 +0000 |
commit | 81d175db511764cceb67f3448f0b5e81ea18e431 (patch) | |
tree | dc8f495f00bb7c624790080ef91c0885e4670e6f /svgio/source | |
parent | e450a2c506ac7cd4433b0f93fc750a89919bc03c (diff) |
fdo63235 - correct usage of marker-start/-end for svg path data
marker orientation will be corrected in a subsequent patch
Change-Id: I0c833b62d06ad21ebe5fbaf170cfb22cecbf146d
Reviewed-on: https://gerrit.libreoffice.org/6086
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'svgio/source')
-rw-r--r-- | svgio/source/svgreader/svgstyleattributes.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 511872ec7f1e..67219e7060a8 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -949,7 +949,7 @@ namespace svgio basegfx::B2DRange aClipRange; const SvgMarkerNode* pPrepared = 0; - if(pStart) + if(pStart && a==0) { if(prepare_singleMarker(aMarkerPrimitives, aMarkerTransform, aClipRange, *pStart)) { @@ -958,20 +958,22 @@ namespace svgio } } - if(pMid && nMarkerCount > 2) + if(pMid) { if(pMid == pPrepared || prepare_singleMarker(aMarkerPrimitives, aMarkerTransform, aClipRange, *pMid)) { pPrepared = pMid; + const sal_uInt32 nFirstIndex(a==0 ? 1 : 0); + const sal_uInt32 nLastIndex(a==nCount-1 ? nMarkerCount-1 : nMarkerCount); - for(sal_uInt32 b(1); b < nMarkerCount - 1; b++) + for(sal_uInt32 b(nFirstIndex); b < nLastIndex; b++) { add_singleMarker(rTarget, aMarkerPrimitives, aMarkerTransform, aClipRange, *pPrepared, aCandidate, b); } } } - if(pEnd) + if(pEnd && a==nCount-1) { if(pEnd == pPrepared || prepare_singleMarker(aMarkerPrimitives, aMarkerTransform, aClipRange, *pEnd)) { |