From 27aac319ca9f2d580aea45542c5d0428616f7e0b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 21 Jul 2016 16:07:35 +0200 Subject: sc: provide size in the payload of LOK_CALLBACK_DOCUMENT_SIZE_CHANGED The sw implementation does so, and the API documentation also says clients can depend on this. Change-Id: Ib4d25d7207fd8358de2ec1186d4ca2306e996497 Reviewed-on: https://gerrit.libreoffice.org/27379 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- sw/source/core/view/viewsh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 118e2243efa8..6c8a94b74183 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -1010,8 +1010,8 @@ void SwViewShell::SizeChgNotify() Size aDocSize = GetDocSize(); std::stringstream ss; ss << aDocSize.Width() + 2L * DOCUMENTBORDER << ", " << aDocSize.Height() + 2L * DOCUMENTBORDER; - OString sRect = ss.str().c_str(); - GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_DOCUMENT_SIZE_CHANGED, sRect.getStr()); + OString sSize = ss.str().c_str(); + GetSfxViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_DOCUMENT_SIZE_CHANGED, sSize.getStr()); } } } -- cgit