avoid array overrun
This commit is contained in:
parent
e548d6364f
commit
bd91c127a3
1 changed files with 1 additions and 1 deletions
|
@ -718,7 +718,7 @@ sal_Bool SfxOrganizeListBox_Impl::MoveOrCopyContents(SvLBox *pSourceBox,
|
||||||
pChildIter = NextSibling(pChildIter);
|
pChildIter = NextSibling(pChildIter);
|
||||||
// If possible, fill in Items onDemand
|
// If possible, fill in Items onDemand
|
||||||
++i;
|
++i;
|
||||||
if(p[i+1] != INDEX_IGNORE &&
|
if(i < 2 && p[i+1] != INDEX_IGNORE &&
|
||||||
pChildIter->HasChildsOnDemand() &&
|
pChildIter->HasChildsOnDemand() &&
|
||||||
!GetModel()->HasChilds(pChildIter))
|
!GetModel()->HasChilds(pChildIter))
|
||||||
RequestingChilds(pChildIter);
|
RequestingChilds(pChildIter);
|
||||||
|
|
Loading…
Reference in a new issue