Kaydet (Commit) 631b6e87 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

check for non existing style entries, fdo#53339

Change-Id: I95bbb3ad89eedebbcd45b4eefd26b46d5d8cd05f
üst 97c8aaee
......@@ -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()) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment