diff options
author | Jürgen Schmidt <jsc@apache.org> | 2012-06-08 11:31:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-11 15:09:36 +0100 |
commit | c6238797733a607054e84f6620ae479ae77c7d82 (patch) | |
tree | 4272c87b9c32dcf3a13bbba990c97a4e4e9a1859 /svx/source/table/cell.cxx | |
parent | 16e6841fcd99c7ca6e9a3cbd82d17af81b362c32 (diff) |
Resolves: #i119889# .pptx table vertical text direction
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
(cherry picked from commit bb8bf7bde59c22776199e791b8cfcbf07992de8e)
Conflicts:
oox/source/drawingml/table/tablecell.cxx
Change-Id: I58bb1548617c4c1e231280a405d6071ea8813039
Diffstat (limited to 'svx/source/table/cell.cxx')
-rw-r--r-- | svx/source/table/cell.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx index ccb71c9381b8..c86662cb6b34 100644 --- a/svx/source/table/cell.cxx +++ b/svx/source/table/cell.cxx @@ -305,6 +305,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 |