Wrong copy paste in SwFieldFormCheckboxPortion::Format ?
serval2412 at yahoo.fr
Tue Nov 19 10:22:49 UTC 2019
There's no function "GetTextWidth" (or I missed it), so can't do this assertion.
Le mardi 19 novembre 2019 à 11:12:24 UTC+1, Michael Stahl <mst at libreoffice.org> a écrit :
On 19.11.19 09:20, Miklos Vajna wrote:
> Hi Julien,
> Oh sorry, I didn't realize this pattern is:
> I thought it's:
> 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. :-)
even better: add an assertion that the width and the height are the
same, then you'll find out in case your assumption isn't true.
assertions are executable documentation :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the LibreOffice