diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-10 10:04:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-10 12:28:19 +0200 |
commit | 1ddf8be9bcb2151157823870fd0a03e022fdad60 (patch) | |
tree | 7ff8b895269de087b9cc967610356762f0cab413 /include/tools/gen.hxx | |
parent | AnnotationWin: Restore lines from annotations to comment anchor (diff) | |
download | core-1ddf8be9bcb2151157823870fd0a03e022fdad60.tar.gz core-1ddf8be9bcb2151157823870fd0a03e022fdad60.zip |
make tools::Rectangle::setX respect empty state
and make non-inline so it is easy to disable this for debugging, if need
be
Change-Id: I2beae23bbdea36e91e0e367f9a94cbc35be3cd24
Reviewed-on: https://gerrit.libreoffice.org/75337
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 ebe44840d964..9dfab3a17019 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -459,7 +459,7 @@ public: /// 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 - void setX( long x ) { nRight += x - nLeft; nLeft = x; } + void setX( long x ); /// Set the top edge of the rectangle to y, preserving the height void setY( long y ) { nBottom += y - nTop; nTop = y; } void setWidth( long n ) { nRight = nLeft + n; } |