summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorJürgen Schmidt <jsc@apache.org>2012-06-08 11:31:34 +0000
committerJürgen Schmidt <jsc@apache.org>2012-06-08 11:31:34 +0000
commitbb8bf7bde59c22776199e791b8cfcbf07992de8e (patch)
treed68f568bb9dd01044545adb6b0f598244f2df098 /svx/source
parent072ec8831233cfd5e72eebd5afda3e25ca49d80d (diff)
119889: Import .pptx file into OO3.4, the vertical text direction of the table will be lost.
fix: Set property to cell object if the cell has vertical property. And fix in svx module by setting cell's vertical property. Patch By: companycy Found By: Shan Zu Review By: jsc
Notes
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/table/cell.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx
index c577a60d2c2c..f14a23e110dd 100644
--- a/svx/source/table/cell.cxx
+++ b/svx/source/table/cell.cxx
@@ -260,6 +260,16 @@ namespace sdr
sdr::table::SdrTableObj& rObj = (sdr::table::SdrTableObj&)GetSdrObject();
if( rObj.IsVerticalWriting() != bVertical )
rObj.SetVerticalWriting(bVertical);
+
+ // Set a cell vertical property
+ OutlinerParaObject* pParaObj = mxCell->GetEditOutlinerParaObject();
+ if( pParaObj == 0 )
+ pParaObj = mxCell->GetOutlinerParaObject();
+ if(pParaObj)
+ {
+ pParaObj->SetVertical(bVertical);
+ }
+
}
// call parent