[Libreoffice-commits] core.git: toolkit/source
Julien Nabet
serval2412 at yahoo.fr
Tue Aug 27 14:43:10 PDT 2013
toolkit/source/controls/tree/treedatamodel.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 711535f7667345b61b5b29de283894b30b400b18
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Aug 27 23:41:57 2013 +0200
Shouldn't be removed
Thank you Thorsten!
(See https://gerrit.libreoffice.org/#/c/5639/)
Change-Id: I933a318ba83c63fa2d7eaa0ecb616b1d3a14b097
diff --git a/toolkit/source/controls/tree/treedatamodel.cxx b/toolkit/source/controls/tree/treedatamodel.cxx
index 292d685..c8859a2 100644
--- a/toolkit/source/controls/tree/treedatamodel.cxx
+++ b/toolkit/source/controls/tree/treedatamodel.cxx
@@ -447,6 +447,9 @@ void SAL_CALL MutableTreeNode::removeChildByIndex( sal_Int32 nChildIndex ) throw
xImpl = (*aIter);
maChildren.erase( aIter );
+ if( !xImpl.is() )
+ throw IndexOutOfBoundsException();
+
xImpl->setParent(0);
xImpl->mbIsInserted = false;
More information about the Libreoffice-commits
mailing list