[Libreoffice-commits] core.git: editeng/source
Eike Rathke
erack at redhat.com
Fri Oct 18 06:42:26 PDT 2013
editeng/source/editeng/editdoc.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit f6d23bbe9909545e044d497e05ebcee28a1b2552
Author: Eike Rathke <erack at redhat.com>
Date: Fri Oct 18 15:41:13 2013 +0200
new WrongList only if there wasn't one or it wasn't empty
Change-Id: Id6eaba19e89236716db2a0db9f557216d9402c66
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 16bfe8f..26c2b24 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1755,8 +1755,9 @@ void ContentNode::SetWrongList( WrongList* p )
void ContentNode::CreateWrongList()
{
- DBG_ASSERT(!mpWrongList, "WrongList already exist!");
- mpWrongList.reset(new WrongList);
+ SAL_WARN_IF( mpWrongList && !mpWrongList->empty(), "editeng", "WrongList already exist!");
+ if (!mpWrongList || !mpWrongList->empty())
+ mpWrongList.reset(new WrongList);
}
void ContentNode::DestroyWrongList()
More information about the Libreoffice-commits
mailing list