Kaydet (Commit) 6f37dc50 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't import data labels border properties for noFill borders

They are not shown anyway and just confuse us internally as they contain
a width but no color and produce invalid documents during export.

Change-Id: Ibe20a27b0172ece86dbb1f734df567b903465ebf
üst 547c58a6
...@@ -168,6 +168,10 @@ void lclConvertLabelFormatting( PropertySet& rPropSet, ObjectFormatter& rFormatt ...@@ -168,6 +168,10 @@ void lclConvertLabelFormatting( PropertySet& rPropSet, ObjectFormatter& rFormatt
void importBorderProperties( PropertySet& rPropSet, Shape& rShape, const GraphicHelper& rGraphicHelper ) void importBorderProperties( PropertySet& rPropSet, Shape& rShape, const GraphicHelper& rGraphicHelper )
{ {
LineProperties& rLP = rShape.getLineProperties(); LineProperties& rLP = rShape.getLineProperties();
// no fill has the same effect as no border so skip it
if (rLP.maLineFill.moFillType.get() == XML_noFill)
return;
if (rLP.moLineWidth.has()) if (rLP.moLineWidth.has())
{ {
sal_Int32 nWidth = convertEmuToHmm(rLP.moLineWidth.get()); sal_Int32 nWidth = convertEmuToHmm(rLP.moLineWidth.get());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment