diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-26 23:00:58 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-26 23:07:41 +0200 |
commit | c55cfd273cf1d4666b91fc9a00c71b049c34adec (patch) | |
tree | fcb47e3c49a2d53a89953d1eb019c6aceee9b15d /sc/source/ui/unoobj | |
parent | df2369657ebe36c3888bb032e693bf1fcb49bb51 (diff) |
mark manual row heights correctly during import, fdo#52393
Change-Id: Id8a1658dbe6d9a89c89d1a0633392b0fa1104c4e
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 41f10ea731af..c43047cb157d 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -3224,10 +3224,13 @@ void SAL_CALL ScTableRowsObj::setPropertyValue( if ( aValue >>= nNewHeight ) { if (pDoc->IsImportingXML()) + { // TODO: This is a band-aid fix. Eventually we need to // re-work ods' style import to get it to set styles to // ScDocument directly. pDoc->SetRowHeightOnly( nStartRow, nEndRow, nTab, (sal_uInt16)HMMToTwips(nNewHeight) ); + pDoc->SetManualHeight( nStartRow, nEndRow, nTab, true ); + } else rFunc.SetWidthOrHeight( false, 1, nRowArr, nTab, SC_SIZE_ORIGINAL, (sal_uInt16)HMMToTwips(nNewHeight), sal_True, sal_True ); |