summaryrefslogtreecommitdiff
path: root/svgio/source
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-08-10 14:58:28 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-08-11 13:03:06 +0200
commitcad5220c707ab7483e9146182e3353146ae24d41 (patch)
tree96453f19ca43532af43598fc490a3e59a7eb7e57 /svgio/source
parent600780e9904958bf91585d5e232e0cfa0c95827a (diff)
tdf#150323: also add markers if there is a css style parent
Change-Id: Ia900726ee31b7b19e98122d40b33581c9a60dcc7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138090 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svgio/source')
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index c787c4dffa92..32fed8b8daff 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -1149,7 +1149,8 @@ namespace svgio::svgreader
// Svg supports markers for path, polygon, polyline and line
if(SVGToken::Path == mrOwner.getType() || // path
SVGToken::Polygon == mrOwner.getType() || // polygon, polyline
- SVGToken::Line == mrOwner.getType()) // line
+ SVGToken::Line == mrOwner.getType() || // line
+ getCssStyleParent())
{
// try to add markers
add_markers(rPath, rTarget, pHelpPointIndices);