diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-16 10:06:27 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-05-16 15:39:27 +0200 |
commit | 8b48ebc169d105f1384cbadcf0d5d3b1592196b5 (patch) | |
tree | 82ab1de02767f51fb8977d7b9fd776d53a704254 /sfx2 | |
parent | 8a258df49a886e4f7f19fddcae9634509cec72b1 (diff) |
avoid array overrun
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docvor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/docvor.cxx b/sfx2/source/doc/docvor.cxx index 23c359a466..ccee46a342 100644 --- a/sfx2/source/doc/docvor.cxx +++ b/sfx2/source/doc/docvor.cxx @@ -718,7 +718,7 @@ sal_Bool SfxOrganizeListBox_Impl::MoveOrCopyContents(SvLBox *pSourceBox, pChildIter = NextSibling(pChildIter); // If possible, fill in Items onDemand ++i; - if(p[i+1] != INDEX_IGNORE && + if(i < 2 && p[i+1] != INDEX_IGNORE && pChildIter->HasChildsOnDemand() && !GetModel()->HasChilds(pChildIter)) RequestingChilds(pChildIter); |