Update to m13
[ooovba.git] / applied_patches / 0479-oox-pptx-import-fix-text-body-vert.diff
blob588ca1b4698f58d17873e4f0382e7e4ef9ff6e50
1 diff -rup oox-orig-1/source/drawingml/textbodypropertiescontext.cxx oox/source/drawingml/textbodypropertiescontext.cxx
2 --- oox-orig-1/source/drawingml/textbodypropertiescontext.cxx 2009-06-03 11:36:03.000000000 +0200
3 +++ oox/source/drawingml/textbodypropertiescontext.cxx 2009-06-03 11:55:15.000000000 +0200
4 @@ -121,7 +121,8 @@ TextBodyPropertiesContext::TextBodyPrope
6 // ST_TextVerticalType
7 mrTextBodyProp.moVert = aAttribs.getToken( XML_vert );
8 - if( mrTextBodyProp.moVert.get( XML_horz ) == XML_vert ) {
9 + sal_Int32 tVert = mrTextBodyProp.moVert.get( XML_horz );
10 + if( tVert == XML_vert || tVert == XML_eaVert || tVert == XML_vert270 || tVert == XML_mongolianVert ) {
11 mrTextBodyProp.maPropertyMap[ CREATE_OUSTRING( "TextWritingMode" ) ]
12 <<= WritingMode_TB_RL;
13 // workaround for TB_LR as using WritingMode2 doesn't work