diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-12 20:16:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-15 09:33:15 +0200 |
commit | 3932c8184a8c93a17c0c7429d5dd9597b087e076 (patch) | |
tree | ffcfb7ae123a9bc385573fa39fca6776e38e9bc4 /include/tools/gen.hxx | |
parent | ee13cd374f9c4957ddc2fd502e278689a6587ab5 (diff) |
make tools::Rectangle::getWidth return 0 when empty
Change-Id: I5c7565309d380cdbe60a078d2c97f7dd1fae4274
Reviewed-on: https://gerrit.libreoffice.org/75517
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/tools/gen.hxx')
-rw-r--r-- | include/tools/gen.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx index 63d13e146336..9dea74be4caa 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -455,7 +455,7 @@ public: long getX() const { return nLeft; } long getY() const { return nTop; } /// Returns the difference between right and left, assuming the range includes one end, but not the other. - long getWidth() const { return nRight - nLeft; } + long getWidth() const; /// Returns the difference between bottom and top, assuming the range includes one end, but not the other. long getHeight() const { return nBottom - nTop; } /// Set the left edge of the rectangle to x, preserving the width |