summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-01-17 17:25:08 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-01-17 17:39:07 +0100
commit75934fc178ed90b56d77eb1efebed5bdac8427b6 (patch)
tree70ae730b43faa0659391d9c2d314957c83c982da /oox
parentce8010b482020145b8a8c8e15a61e1a6b5574d7c (diff)
VML import: handle shape with text inside groupshape as TextShape
This matches the behavior of the WW8 import and gives us the required text wrapping when the shape text doesn't fit in a single line. Change-Id: I32a13516503620344d313593834be29a3dc9f726
Diffstat (limited to 'oox')
-rw-r--r--oox/source/vml/vmlshapecontext.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/vml/vmlshapecontext.cxx b/oox/source/vml/vmlshapecontext.cxx
index 9e51e2a4177b..d8d39eb845fe 100644
--- a/oox/source/vml/vmlshapecontext.cxx
+++ b/oox/source/vml/vmlshapecontext.cxx
@@ -459,6 +459,8 @@ ContextHandlerRef ShapeContext::onCreateContext( sal_Int32 nElement, const Attri
dynamic_cast<SimpleShape&>( mrShape ).setService(
"com.sun.star.text.TextFrame");
}
+ else
+ dynamic_cast<SimpleShape&>(mrShape).setService("com.sun.star.drawing.TextShape");
return new TextBoxContext( *this, mrShapeModel.createTextBox(mrShape.getTypeModel()), rAttribs,
mrShape.getDrawing().getFilter().getGraphicHelper());
case VMLX_TOKEN( ClientData ):