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/+/177522 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
This commit is contained in:
parent
32642136ad
commit
7dc626a6cd
1 changed files with 2 additions and 1 deletions
|
@ -337,7 +337,8 @@ static void writeContentNode(::tools::JsonWriter& aJsonWriter)
|
|||
static void writeBoundingBox(::tools::JsonWriter& aJsonWriter, SdrObject* pObject)
|
||||
{
|
||||
auto 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());
|
||||
|
|
Loading…
Reference in a new issue