Hi Julien,
Oh sorry, I didn't realize this pattern is:
SetWidth(GetHeight())
SetHeight(GetHeight())
I thought it's:
SetWidth(GetHeight())
SetHeight(GetWidth())
With that in mind, the current code is just OK, the width of the
checkbox portion is the same as its height, since it's a square (and
that size depends on the font size).
Perhaps add a comment explaining this to make it easier for the next
person to understand. :-)
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.