Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


On 16/08/14 22:42, Matteo Casalin wrote:
Hi all,
     function lcl_NotifyNeighbours in sw/source/core/frmedt/feshview.cxx 
has the following loop:

     for( size_t j = 0; j < pLst->GetMarkCount(); ++j )
     {
         [...]
         SdrObject *pO = pLst->GetMark( 0 )->GetMarkedSdrObj();
         [...]
     }

I can't see any use of j inside the loop itself, and repeatedly calling 
"GetMark( 0 )" seems a little strange to me since I do not see any 
removal of the obtained Mark (which could explain the loop). I'm not 
familiar with this code, though: does anybody have an idea of whether 
the loop is correct or not, and in case of how to fix it?

i think you're right, it's very suspicious and the 0 should be replaced
by j.  probably the feature is obscure enough that it doesn't cause
easily noticeable problems; you have to select more than 1 fly and then
invoke some send-to-top or send-to-bottom feature.




Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.