vcl/source/window/layout.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit c9bae2d26ed065bad1e490815a7606435cf63556 Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Wed Nov 29 16:40:00 2023 +0300 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Wed Nov 29 22:28:50 2023 +0100
Online: Put the image width height info into json. When online's image render is delayed we don't have any image size info so getting 0x0. To show better result we need that info into message. Signed-off-by: Gülşah Köse <gulsah.k...@collabora.com> Change-Id: I28f345cdd64de5fa47b3b1054330e606e7b32f03 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160106 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 5095ee62009d..5639d8e62d57 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -3104,6 +3104,8 @@ void VclDrawingArea::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) BitmapEx aImage = pDevice->GetBitmapEx(Point(0,0), aRenderSize); aImage.Scale(aOutputSize); + rJsonWriter.put("imagewidth", aRenderSize.Width()); + rJsonWriter.put("imageheight", aRenderSize.Height()); SvMemoryStream aOStm(65535, 65535); if(GraphicConverter::Export(aOStm, aImage, ConvertDataFormat::PNG) == ERRCODE_NONE)