summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorSushil Shinde <sushilshinde@libreoffice.org>2015-04-20 00:45:06 +0530
committerCaolán McNamara <caolanm@redhat.com>2015-04-30 08:32:11 +0000
commit049e84125fb76f7a1a051d7cac2e04e37a7cd190 (patch)
tree03132db35b7a29b9d6141a4d54d52d0120a4d023 /oox/source
parent8a08f68669f9acfe98dadcca4af6519164a17000 (diff)
tdf#90720 Textframe background was not transparent
In case of 'no fill' for vml textboxes, MS office rendered as transpanrent textbox. When opened same file on LO, it rendered it as textframe with white background. (Even if the fillstyle is type of 'no fill' and 'backcolortransparency ' is 100%) So, Fixing this issue by applying 100% 'FillTransparency' if it gets above situation. Change-Id: Ied2d3855354ada994288c29c78d9ccb4e5b0b4d6 Reviewed-on: https://gerrit.libreoffice.org/15390 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/vml/vmlshape.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 1bb21a155846..bd738d295081 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -329,6 +329,11 @@ Reference< XShape > ShapeBase::convertAndInsert( const Reference< XShapes >& rxS
aGrabBag[length+1].Value = uno::makeAny(sal_Int32(NormAngle360((maTypeModel.maRotation.toInt32()) * -100)));
}
propertySet->setPropertyValue( "FrameInteropGrabBag", uno::makeAny(aGrabBag) );
+ if (propertySet->getPropertyValue("FillStyle") == FillStyle_NONE &&
+ propertySet->getPropertyValue("BackColorTransparency") == makeAny(100)) {
+ // If there is no fill, the Word default is 100% transparency.
+ propertySet->setPropertyValue("FillTransparence", makeAny(100));
+ }
}
else
{