diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-08-14 22:50:05 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-08-14 22:55:13 +0200 |
commit | 631b6e87ca95c0e2bcb2bdc34095c5f601af3469 (patch) | |
tree | 71cc9297a85bd2f5aeb48c19312ca11602a076a2 /sc | |
parent | 97c8aaee3afa65bf7106cf175af87841147ca6e5 (diff) |
check for non existing style entries, fdo#53339
Change-Id: I95bbb3ad89eedebbcd45b4eefd26b46d5d8cd05f
Diffstat (limited to 'sc')
-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 01f0b0fc9ed9..9bfb1caded4b 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()) ) |