diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2022-06-29 00:06:03 +1000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-07-11 11:06:53 +0200 |
commit | 934985becc567114c3f38a72322056a628aad7c9 (patch) | |
tree | 54530473a4d3a0a5876aff68b3727d51fa4dc88d /svl | |
parent | a19e01812b60580c656cf31619e212803e2ca0fa (diff) |
tools: rename getHeight/Width() to GetOpenHeight/Width()
By default Rectangle uses closed interval, if we really want to use half
open intervals then we should specifically say as such in the name.
Change-Id: Id7a91120ba1a1a4bc330014216b73a692dbf03a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136575
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/rectitem.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svl/source/items/rectitem.cxx b/svl/source/items/rectitem.cxx index 43aa86a76d30..9f6789d3b707 100644 --- a/svl/source/items/rectitem.cxx +++ b/svl/source/items/rectitem.cxx @@ -80,14 +80,14 @@ bool SfxRectangleItem::QueryValue( css::uno::Any& rVal, { rVal <<= css::awt::Rectangle( aVal.Left(), aVal.Top(), - aVal.getWidth(), - aVal.getHeight() ); + aVal.getOpenWidth(), + aVal.getOpenHeight() ); break; } case MID_RECT_LEFT: rVal <<= aVal.Left(); break; case MID_RECT_RIGHT: rVal <<= aVal.Top(); break; - case MID_WIDTH: rVal <<= aVal.getWidth(); break; - case MID_HEIGHT: rVal <<= aVal.getHeight(); break; + case MID_WIDTH: rVal <<= aVal.getOpenWidth(); break; + case MID_HEIGHT: rVal <<= aVal.getOpenHeight(); break; default: OSL_FAIL("Wrong MemberID!"); return false; } |