Kaydet (Commit) 75304346 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix crash in XclImpSupbook::GetExternName

Change-Id: I1b6f8d5190fae16bdeb1def7887d3121dad6bc16
üst 5da3f0f7
......@@ -703,7 +703,11 @@ void XclImpSupbook::ReadExternname( XclImpStream& rStrm, ExcelToSc* pFormulaConv
const XclImpExtName* XclImpSupbook::GetExternName( sal_uInt16 nXclIndex ) const
{
OSL_ENSURE( nXclIndex > 0, "XclImpSupbook::GetExternName - index must be >0" );
if (nXclIndex == 0)
{
SAL_WARN("sc", "XclImpSupbook::GetExternName - index must be >0");
return NULL;
}
if (meType == EXC_SBTYPE_SELF || nXclIndex > maExtNameList.size())
return NULL;
return &maExtNameList[nXclIndex-1];
......
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