Kaydet (Commit) b796e268 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Fix a crash when inserting a multi-line content into cell.

Change-Id: Idf2b6ca6873860a9bb3d2dae646b0383435e58c9
üst 309c766d
......@@ -1732,6 +1732,12 @@ sal_Unicode ContentNode::GetChar(sal_uInt16 nPos) const
return maString.GetChar(nPos);
}
void ContentNode::EnsureWrongList()
{
if (!mpWrongList)
CreateWrongList();
}
WrongList* ContentNode::GetWrongList()
{
return mpWrongList.get();
......
......@@ -283,6 +283,7 @@ public:
void CreateDefFont();
void EnsureWrongList();
WrongList* GetWrongList();
const WrongList* GetWrongList() const;
void SetWrongList( WrongList* p );
......
......@@ -2285,6 +2285,7 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, bool bSpellAtC
if ( pThisNodeOnly )
pNode = pThisNodeOnly;
pNode->EnsureWrongList();
if (!pNode->GetWrongList()->IsValid())
{
WrongList* pWrongList = pNode->GetWrongList();
......
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