summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2022-06-29 00:06:03 +1000
committerTomaž Vajngerl <quikee@gmail.com>2022-07-11 11:06:53 +0200
commit934985becc567114c3f38a72322056a628aad7c9 (patch)
tree54530473a4d3a0a5876aff68b3727d51fa4dc88d /sc/source/filter/xml
parenta19e01812b60580c656cf31619e212803e2ca0fa (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 'sc/source/filter/xml')
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index 8a781127035a..2babb82a6f84 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -3533,14 +3533,14 @@ void ScXMLExport::WriteShapes(const ScMyCell& rMyCell)
aRectFull.SetTop(aStartCellRect.Top() + aSnapStartOffset.Y());
aRectFull.SetBottom(aEndCellRect.Top() + aSnapEndOffset.Y());
aRectReduced = pObjData->getShapeRect();
- if(abs(aRectFull.getWidth() - aRectReduced.getWidth()) > 1
- || abs(aRectFull.getHeight() - aRectReduced.getHeight()) > 1)
+ if(abs(aRectFull.getOpenWidth() - aRectReduced.getOpenWidth()) > 1
+ || abs(aRectFull.getOpenHeight() - aRectReduced.getOpenHeight()) > 1)
{
bNeedsRestore = true;
- Fraction aScaleWidth(aRectFull.getWidth(), aRectReduced.getWidth());
+ Fraction aScaleWidth(aRectFull.getOpenWidth(), aRectReduced.getOpenWidth());
if (!aScaleWidth.IsValid())
aScaleWidth = Fraction(1.0);
- Fraction aScaleHeight(aRectFull.getHeight(), aRectReduced.getHeight());
+ Fraction aScaleHeight(aRectFull.getOpenHeight(), aRectReduced.getOpenHeight());
if (!aScaleHeight.IsValid())
aScaleHeight = Fraction(1.0);
pObj->NbcResize(pObj->GetRelativePos(), aScaleWidth, aScaleHeight);
@@ -5190,9 +5190,9 @@ void ScXMLExport::GetViewSettings(uno::Sequence<beans::PropertyValue>& rProps)
pProps[++i].Name = "VisibleAreaLeft";
pProps[i].Value <<= static_cast<sal_Int32>(aRect.Left());
pProps[++i].Name = "VisibleAreaWidth";
- pProps[i].Value <<= static_cast<sal_Int32>(aRect.getWidth());
+ pProps[i].Value <<= static_cast<sal_Int32>(aRect.getOpenWidth());
pProps[++i].Name = "VisibleAreaHeight";
- pProps[i].Value <<= static_cast<sal_Int32>(aRect.getHeight());
+ pProps[i].Value <<= static_cast<sal_Int32>(aRect.getOpenHeight());
}
}
}