improving empty handling in tools::Rectangle

Noel Grandin noelgrandin at
Tue May 7 10:41:29 UTC 2019

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.

More information about the LibreOffice mailing list