diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-14 16:46:44 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-14 17:18:57 -0400 |
commit | 4606ca07de17c930b658206a19446516cf0d4eb7 (patch) | |
tree | b9c5d631943fa1b5d94f2b05468aefd29c46e491 /sc | |
parent | 0038f19b97f5e036870d2210f975358c18e5809e (diff) |
Calculate positions of cell-anchored objects upon 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.
Change-Id: I8ab5dd1fe7cd8a45b7968e101c893b442d7ce132
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlimprt.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index dcf37b4abe85..4f2ff595a12b 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -3101,8 +3101,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(); } |