summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2020-05-28 04:27:50 +0530
committerDennis Francis <dennis.francis@collabora.com>2020-07-06 08:36:25 +0200
commit8eaf52648b429dc79e8e58316af87f65d8873bed (patch)
tree91ec8a4f12af3c21e6dee8be93db66041380bfb6 /sc
parente2e731f32c8461853258116188125d885295a27c (diff)
lokit: Adjust nSize* to agree with the definition in tools::Rectangle
Change-Id: I6ebe539fe47403e4aa605c5ddfb6175080bd4655 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98051 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 5e3a7b2117b0..cfe3832beb3d 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -2508,7 +2508,7 @@ void ScDocShell::LOKCommentNotify(LOKCommentNotificationType nType, const ScDocu
Point aTopLeft = pViewData->GetPrintTwipsPos(rPos.Col(), rPos.Row());
long nSizeX, nSizeY;
pViewData->GetMergeSizePrintTwips(rPos.Col(), rPos.Row(), nSizeX, nSizeY);
- aRectString = tools::Rectangle(aTopLeft, Size(nSizeX, nSizeY)).toString();
+ aRectString = tools::Rectangle(aTopLeft, Size(nSizeX - 1, nSizeY - 1)).toString();
}
else
{