Kaydet (Commit) 5d5c102e authored tarafından Matteo Casalin's avatar Matteo Casalin

Typo: loop on all Marks instead of processing Mark(0) over and over

See:

http://nabble.documentfoundation.org/Suspicious-loop-any-idea-td4119239.html

Since the code was like this since initial import (2000), if this patch proves
to be wrong then the other option could be to just don't loop and process
Mark(0) just once.

Change-Id: I41ac18604e916740dcc68bf69af37529842f774d
üst b4454c19
......@@ -731,7 +731,7 @@ static void lcl_NotifyNeighbours( const SdrMarkList *pLst )
bool bCheckNeighbours = false;
sal_Int16 aHori = text::HoriOrientation::NONE;
SwRect aRect;
SdrObject *pO = pLst->GetMark( 0 )->GetMarkedSdrObj();
SdrObject *pO = pLst->GetMark( j )->GetMarkedSdrObj();
if ( pO->ISA(SwVirtFlyDrawObj) )
{
SwFlyFrm *pFly = ((SwVirtFlyDrawObj*)pO)->GetFlyFrm();
......
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