| author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-08-14 20:50:05 (GMT) |
|---|---|---|
| committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-08-14 20:55:13 (GMT) |
| commit | 631b6e87ca95c0e2bcb2bdc34095c5f601af3469 (patch) (side-by-side diff) | |
| tree | 71cc9297a85bd2f5aeb48c19312ca11602a076a2 | |
| parent | 97c8aaee3afa65bf7106cf175af87841147ca6e5 (diff) | |
| download | core-631b6e87ca95c0e2bcb2bdc34095c5f601af3469.zip core-631b6e87ca95c0e2bcb2bdc34095c5f601af3469.tar.gz | |
check for non existing style entries, fdo#53339
Change-Id: I95bbb3ad89eedebbcd45b4eefd26b46d5d8cd05f
| -rw-r--r-- | sc/source/filter/excel/xestyle.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index 01f0b0f..9bfb1ca 100644 --- a/sc/source/filter/excel/xestyle.cxx +++ b/sc/source/filter/excel/xestyle.cxx @@ -2902,7 +2902,12 @@ XclExpDxfs::XclExpDxfs( const XclExpRoot& rRoot ) { maStyleNameToDxfId.insert(std::pair<rtl::OUString, sal_Int32>(aStyleName, nIndex)); - SfxItemSet& rSet = rRoot.GetDoc().GetStyleSheetPool()->Find(aStyleName)->GetItemSet(); + std::cout << "Style" << aStyleName << std::endl; + SfxStyleSheetBase* pStyle = rRoot.GetDoc().GetStyleSheetPool()->Find(aStyleName); + if(!pStyle) + continue; + + SfxItemSet& rSet = pStyle->GetItemSet(); XclExpCellBorder* pBorder = new XclExpCellBorder; if (!pBorder->FillFromItemSet( rSet, GetPalette(), GetBiff()) ) |
