From 75934fc178ed90b56d77eb1efebed5bdac8427b6 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 17 Jan 2014 17:25:08 +0100 Subject: 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 --- oox/source/vml/vmlshapecontext.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'oox/source/vml') 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( mrShape ).setService( "com.sun.star.text.TextFrame"); } + else + dynamic_cast(mrShape).setService("com.sun.star.drawing.TextShape"); return new TextBoxContext( *this, mrShapeModel.createTextBox(mrShape.getTypeModel()), rAttribs, mrShape.getDrawing().getFilter().getGraphicHelper()); case VMLX_TOKEN( ClientData ): -- cgit