summaryrefslogtreecommitdiff
path: root/sw/source/core/model
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-09-08 16:34:42 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-09-08 15:18:52 +0200
commit160b6db92cc94f2ec2447ae0e9c60c8c9dcf3bad (patch)
treee29cdddaf23e4c85878b3fab10105301b460c8ef /sw/source/core/model
parent11622c2eb319bb096d4d587ea06a932ba5fceafb (diff)
indexing: fix correct size and pos. for shapes + more tests
Determining the position and size of the shapes (SdrObjects) was wrong as the assumption was the values are in Hmm but were in twips. Added some more tests that check rendering of SdrObjects. Change-Id: I6ef9287892d1774a1243118a5c97f58384bcfd68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121801 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sw/source/core/model')
-rw-r--r--sw/source/core/model/SearchResultLocator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/model/SearchResultLocator.cxx b/sw/source/core/model/SearchResultLocator.cxx
index dd488780981e..435f0110aedf 100644
--- a/sw/source/core/model/SearchResultLocator.cxx
+++ b/sw/source/core/model/SearchResultLocator.cxx
@@ -65,8 +65,7 @@ void SearchResultLocator::findOne(LocationResult& rResult, SearchIndexData const
{
if (pObject->GetName() == rSearchIndexData.maObjectName)
{
- auto aRect = o3tl::convert(pObject->GetLogicRect(), o3tl::Length::mm100,
- o3tl::Length::twip);
+ auto aRect = pObject->GetLogicRect();
rResult.mbFound = true;
rResult.maRectangles.emplace_back(aRect.Left(), aRect.Top(),
aRect.Left() + aRect.GetWidth(),