From 934985becc567114c3f38a72322056a628aad7c9 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Wed, 29 Jun 2022 00:06:03 +1000 Subject: tools: rename getHeight/Width() to GetOpenHeight/Width() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- drawinglayer/source/primitive2d/metafileprimitive2d.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drawinglayer/source') diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx index be17e620de40..f229aed520a4 100644 --- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx @@ -70,8 +70,8 @@ namespace drawinglayer::primitive2d aAdaptedTransform.translate(-aMtfTarget.Left(), -aMtfTarget.Top()); aAdaptedTransform.scale( - aMtfTarget.getWidth() ? 1.0 / aMtfTarget.getWidth() : 1.0, - aMtfTarget.getHeight() ? 1.0 / aMtfTarget.getHeight() : 1.0); + aMtfTarget.getOpenWidth() ? 1.0 / aMtfTarget.getOpenWidth() : 1.0, + aMtfTarget.getOpenHeight() ? 1.0 / aMtfTarget.getOpenHeight() : 1.0); aAdaptedTransform = getTransform() * aAdaptedTransform; // embed to target transformation -- cgit