sc/source/ui/docshell/docsh3.cxx | 8 ++++++++ sc/source/ui/view/viewfun2.cxx | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-)
New commits: commit 8d515ccd7c25120ee1f8d6d5494c8853f1268162 Author: Jan Holesovsky <ke...@collabora.com> Date: Fri Mar 18 15:52:55 2016 +0100 sc lok bccu#1519: More general solution to detecting cell resizes. This covers even the row height updates when the text in the cell changes etc. Change-Id: Idb570fa2c3c4d3c6bcdb381f8ce07a0311354083 diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index efcf435..a805c01 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -63,6 +63,9 @@ #include "markdata.hxx" #include <memory> +#include <comphelper/lok.hxx> +#include <LibreOfficeKit/LibreOfficeKitEnums.h> + // Redraw - Benachrichtigungen void ScDocShell::PostEditView( ScEditEngineDefaulter* pEditEngine, const ScAddress& rCursorPos ) @@ -159,6 +162,11 @@ void ScDocShell::PostPaint( const ScRangeList& rRanges, sal_uInt16 nPart, sal_uI } Broadcast(ScPaintHint(aPaintRanges.Combine(), nPart)); + + // LOK: we are supposed to update the row / columns headers (and actually + // the document size too - cell size affects that, obviously) + if ((nPart & (PAINT_TOP | PAINT_LEFT)) && comphelper::LibreOfficeKit::isActive() && aDocument.GetDrawLayer()) + aDocument.GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_DOCUMENT_SIZE_CHANGED, ""); } void ScDocShell::PostPaintGridAll() diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index 09c80ee..54c019a 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -155,9 +155,6 @@ bool ScViewFunc::AdjustBlockHeight( bool bPaint, ScMarkData* pMarkData ) if ( bPaint && bAnyChanged ) pDocSh->UpdateOle(&GetViewData()); - if (bAnyChanged && comphelper::LibreOfficeKit::isActive() && rDoc.GetDrawLayer()) - rDoc.GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_DOCUMENT_SIZE_CHANGED, ""); - return bAnyChanged; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits