Kaydet (Commit) 53e5b6be authored tarafından Miklos Vajna's avatar Miklos Vajna

DOCX drawingML shape import: fix sw text frame transparence

Mirror what the VML import's ShapeBase::convertShapeProperties() already
does, fixes CppunitTest_sw_ooxmlexport's testFdo66688 when wps import is
enabled by default.

Change-Id: Iabed3a5fa1353aefe3055232ad0b7770067a7a58
üst f1d303c6
......@@ -611,6 +611,16 @@ Reference< XShape > Shape::createAndInsert(
// assertions from svx) ...
if( aServiceName != "com.sun.star.drawing.GroupShape" )
{
if (aServiceName == "com.sun.star.text.TextFrame")
{
// TextFrames have BackColorTransparency, not FillTransparence
if (aShapeProps.hasProperty(PROP_FillTransparence))
{
aShapeProps.setProperty(PROP_BackColorTransparency, aShapeProps[PROP_FillTransparence]);
aShapeProps.erase(PROP_FillTransparence);
}
}
PropertySet( xSet ).setProperties( aShapeProps );
if (mbLockedCanvas && aServiceName == "com.sun.star.drawing.LineShape")
{
......
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