sd/source/ui/tools/SlideshowLayerRenderer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 84e00eae91b4e236028ceed6ad17a30f1b7dc509 Author: Marco Cecchetti <marco.cecche...@collabora.com> AuthorDate: Tue Sep 10 11:31:37 2024 +0200 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Wed Sep 11 11:06:30 2024 +0200 lok: slideshow: animated shape bounding box in twips Since we have slide size in twips we need shape bounding box in twips too. Change-Id: I41e4658278e7b36b87a6bccc72b429944ef27e4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173128 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/sd/source/ui/tools/SlideshowLayerRenderer.cxx b/sd/source/ui/tools/SlideshowLayerRenderer.cxx index 29a3e4af67ec..97662acb87a0 100644 --- a/sd/source/ui/tools/SlideshowLayerRenderer.cxx +++ b/sd/source/ui/tools/SlideshowLayerRenderer.cxx @@ -339,7 +339,8 @@ static void writeContentNode(::tools::JsonWriter& aJsonWriter) static void writeBoundingBox(::tools::JsonWriter& aJsonWriter, SdrObject* pObject) { ::tools::ScopedJsonWriterNode aContentNode = aJsonWriter.startNode("bounds"); - ::tools::Rectangle aRect = pObject->GetCurrentBoundRect(); + ::tools::Rectangle aRectmm100 = pObject->GetCurrentBoundRect(); + ::tools::Rectangle aRect = o3tl::convert(aRectmm100, o3tl::Length::mm100, o3tl::Length::twip); aJsonWriter.put("x", aRect.getX()); aJsonWriter.put("y", aRect.getY()); aJsonWriter.put("width", aRect.GetWidth());