diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2018-01-11 16:03:30 +0100 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2018-01-15 15:37:17 +0100 |
commit | d5b38f415ba4e65012db4b9d01ea29a4ca3ffa08 (patch) | |
tree | a85aa3832e9e34e9fa160a6e3ca344a25cbb5250 /sc/source | |
parent | 183fd9a58ae3eeb749b78e6f4ca5783c79b43acb (diff) |
lok: sc: invalidate cached positions and row header on font resizing
Change-Id: I9678d6bd730d09d1cc47a8633368c99abe1f9bd9
Reviewed-on: https://gerrit.libreoffice.org/47762
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index 729cad4210eb..d718c7c1fcd5 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -114,6 +114,12 @@ bool ScViewFunc::AdjustBlockHeight( bool bPaint, ScMarkData* pMarkData ) aMarkedRows.emplace_back(nCurRow, nCurRow); } + if (comphelper::LibreOfficeKit::isActive()) + { + SCCOLROW nStart = aMarkedRows[0].mnStart; + OnLOKSetWidthOrHeight(nStart, /*width: */ false); + } + double nPPTX = GetViewData().GetPPTX(); double nPPTY = GetViewData().GetPPTY(); Fraction aZoomX = GetViewData().GetZoomX(); @@ -160,11 +166,19 @@ bool ScViewFunc::AdjustBlockHeight( bool bPaint, ScMarkData* pMarkData ) if ( bPaint && bAnyChanged ) pDocSh->UpdateOle(&GetViewData()); + if (comphelper::LibreOfficeKit::isActive()) + ScTabViewShell::notifyAllViewsHeaderInvalidation(ROW_HEADER, GetViewData().GetTabNo()); + return bAnyChanged; } bool ScViewFunc::AdjustRowHeight( SCROW nStartRow, SCROW nEndRow ) { + if (comphelper::LibreOfficeKit::isActive()) + { + OnLOKSetWidthOrHeight(nStartRow, /*width: */ false); + } + ScDocShell* pDocSh = GetViewData().GetDocShell(); ScDocument& rDoc = pDocSh->GetDocument(); SCTAB nTab = GetViewData().GetTabNo(); @@ -201,6 +215,9 @@ bool ScViewFunc::AdjustRowHeight( SCROW nStartRow, SCROW nEndRow ) pDocSh->PostPaint( 0, nStartRow, nTab, MAXCOL, MAXROW, nTab, PaintPartFlags::Grid | PaintPartFlags::Left ); + if (comphelper::LibreOfficeKit::isActive()) + ScTabViewShell::notifyAllViewsHeaderInvalidation(ROW_HEADER, GetViewData().GetTabNo()); + return bChanged; } |