On Tuesday 03 of April 2012, Daniel Bankston [danthedev] wrote:
Hello, everyone,
I have attached my patches for EasyHack Bug 46610.
Looks good to me, I only removed the return's at the end of function, as they
are superfluous in void functions. Pushed, thank you.
I identified that the return value of Intersect was being used in
vcl/source/edit.cxx::673 in a conditional. I re-factored the code so
that the conditional did not use the return value but still called
Intersect so as to not affect the original functionality. However, I
wonder if the original author misunderstood what this Intersect method
actually does. Maybe being mislead by the return type, the author's
intent was to check if these Regions intersected instead of combining
the regions (which is what I believe these methods actually do)? This
usage should probably be checked by someone more knowledgeable and
experienced than me. Maybe it is nothing, but it is probably worth
checking to be sure.
It seems to me you are correct. I've added !IsEmpty() check to the if(),
which should do what the original author wanted.
--
Lubos Lunak
l.lunak@suse.cz
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.