summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-08-14 16:46:44 -0400
committerCaolán McNamara <caolanm@redhat.com>2012-11-12 12:28:46 +0000
commit7ba78c7712abb83f515e45a744786af45a7fbc64 (patch)
treec4d9f3291b1b17ffb93af8290a93ba748ea01b95
parent6d425d93fd842f74d84bdcd65bce6a77c1c8821d (diff)
Resolves: fdo#56009 fdo#54695 Calculate positions of cell-anchored objects
on ods import Since we no longer re-calc row heights on ods import, we need to do this manually, in order to position cell-anchored objects correctly. Previously we were getting this for free since the row height recalc code path did it as part of it. Signed-off-by: Noel Power <noel.power@suse.com> (cherry picked from commit 89e34ef5e4ff5efc202656bd9a2122745fdc6530) Change-Id: I8ab5dd1fe7cd8a45b7968e101c893b442d7ce132 Signed-off-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index 166cef9df78e..6a67c6a6d0ea 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -2929,8 +2929,11 @@ throw( ::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeE
SCTAB nTabCount = pDoc->GetTableCount();
for (SCTAB nTab=0; nTab<nTabCount; ++nTab)
+ {
+ pDoc->SetDrawPageSize(nTab);
if (!pSheetData->IsSheetBlocked( nTab ))
pDoc->SetStreamValid( nTab, true );
+ }
}
aTables.FixupOLEs();