Kaydet (Commit) 80503eb9 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

Prevent crash: pNode->GetWrongList() can return NULL

Change-Id: If3363271f72dae7581ac41542f890eaebed38e6c
üst 7cfd041c
......@@ -1976,7 +1976,9 @@ void EditEngine::SetControlWord( sal_uInt32 nWord )
{
ContentNode* pNode = pImpEditEngine->GetEditDoc().GetObject( n );
const ParaPortion* pPortion = pImpEditEngine->GetParaPortions()[n];
bool bWrongs = ( bSpellingChanged || ( nWord & EE_CNTRL_ONLINESPELLING ) ) ? !pNode->GetWrongList()->empty() : false;
bool bWrongs = false;
if (pNode->GetWrongList() != NULL && ( bSpellingChanged || ( nWord & EE_CNTRL_ONLINESPELLING ) ))
bWrongs = !pNode->GetWrongList()->empty();
if ( bSpellingChanged )
pNode->DestroyWrongList();
if ( bWrongs )
......
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