| author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-08-14 20:46:44 (GMT) |
|---|---|---|
| committer | Noel Power <noel.power@suse.com> | 2012-09-10 13:36:23 (GMT) |
| commit | 89e34ef5e4ff5efc202656bd9a2122745fdc6530 (patch) (side-by-side diff) | |
| tree | 610dc27634d2b56edf189b365975fb9aba1a5123 | |
| parent | 717af0973f64bb7cff5f14bd0fb973355559cc70 (diff) | |
| download | core-89e34ef5e4ff5efc202656bd9a2122745fdc6530.zip core-89e34ef5e4ff5efc202656bd9a2122745fdc6530.tar.gz | |
Calculate positions of cell-anchored objects upon ods import (fdo#54695)
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
Signed-off-by: Noel Power <noel.power@suse.com>
| -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 ed8509f..204a3fa 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -3104,8 +3104,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(); |
