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

prevent crash if formula is empty

Change-Id: Ib7bb245fa0c59c9a56441d4c45584b40193b0a32
üst 86ff8ec2
...@@ -58,8 +58,13 @@ XclExpExtCfvo::XclExpExtCfvo( const XclExpRoot& rRoot, const ScColorScaleEntry& ...@@ -58,8 +58,13 @@ XclExpExtCfvo::XclExpExtCfvo( const XclExpRoot& rRoot, const ScColorScaleEntry&
{ {
if( rEntry.GetType() == COLORSCALE_FORMULA ) if( rEntry.GetType() == COLORSCALE_FORMULA )
{ {
rtl::OUString aFormula = XclXmlUtils::ToOUString( GetRoot().GetDoc(), rSrcPos, const ScTokenArray* pArr = rEntry.GetFormula();
rEntry.GetFormula()->Clone(), GetRoot().GetOpCodeMap() ); rtl::OUString aFormula;
if(pArr)
{
aFormula = XclXmlUtils::ToOUString( GetRoot().GetDoc(), rSrcPos,
pArr->Clone(), GetRoot().GetOpCodeMap() );
}
maValue = rtl::OUStringToOString(aFormula, RTL_TEXTENCODING_UTF8 ); maValue = rtl::OUStringToOString(aFormula, RTL_TEXTENCODING_UTF8 );
} }
else else
......
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