summaryrefslogtreecommitdiff
path: root/include/tools/gen.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-12 20:16:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-15 09:33:15 +0200
commit3932c8184a8c93a17c0c7429d5dd9597b087e076 (patch)
treeffcfb7ae123a9bc385573fa39fca6776e38e9bc4 /include/tools/gen.hxx
parentee13cd374f9c4957ddc2fd502e278689a6587ab5 (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.hxx2
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