From 2436cf17304f25c7d34da52a321d6da0e9011d19 Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Fri, 7 Apr 2017 14:17:57 +0200 Subject: tdf#100926: PPTX import of table with rotated text Change-Id: I05a8e979ac11b179e15784023032a56edc5b569b --- oox/source/drawingml/table/tablecell.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'oox') diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx index 1c0d08616599..ebc2ed731d5b 100644 --- a/oox/source/drawingml/table/tablecell.cxx +++ b/oox/source/drawingml/table/tablecell.cxx @@ -467,6 +467,11 @@ void TableCell::pushToXCell( const ::oox::core::XmlFilterBase& rFilterBase, cons } getTextBody()->insertAt( rFilterBase, xText, xAt, aTextStyleProps, pMasterTextListStyle ); + + if (getVertToken() == XML_vert) + xPropSet->setPropertyValue("RotateAngle", Any(short(27000))); + else if (getVertToken() == XML_vert270) + xPropSet->setPropertyValue("RotateAngle", Any(short(9000))); } } } } -- cgit v1.2.3