Re: improving empty handling in tools::Rectangle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2019/05/07 11:40 AM, Stephan Bergmann wrote:
On 07/05/2019 11:30, Noel Grandin wrote:
(1) split the empty flags into their own bool values.

Is there a reason that information about emptyness needs to be encoded more explicitly than just via getWidth()==0 and getHeigth()==0?

Yes, depending on which method you call (getWidth() vs GetWidth()), on tools::Rectangle, it can be regarded as a either a half-open or a closed range.

Yes, this is truly truly awful, which is why I'm just trying to clean up one small part of it's awfulness.

_______________________________________________
LibreOffice mailing list
LibreOffice@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/libreoffice




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux