diff options
-rw-r--r-- | sc/source/ui/docshell/dbdocfun.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index f18973541fc5..977255d7d017 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -25,6 +25,7 @@ #include <svx/svdoole2.hxx> #include <com/sun/star/sdb/CommandType.hpp> #include <unotools/charclass.hxx> +#include <comphelper/lok.hxx> #include <dbdocfun.hxx> #include <dbdata.hxx> @@ -591,6 +592,14 @@ bool ScDBDocFunc::Sort( SCTAB nTab, const ScSortParam& rSortParam, if (pDBData == rDoc.GetAnonymousDBData( nTab) || rDoc.GetDBCollection()->getAnonDBs().has( pDBData)) pDBData->UpdateFromSortParam( rSortParam); + if (comphelper::LibreOfficeKit::isActive()) + { + SfxViewShell* pSomeViewForThisDoc = rDocShell.GetBestViewShell(false); + ScTabViewShell::notifyAllViewsSheetGeomInvalidation( + pSomeViewForThisDoc, false /* bColumns */, true /* bRows */, true /* bSizes*/, + true /* bHidden */, true /* bFiltered */, true /* bGroups */, nTab); + } + if (nStartRow <= aLocalParam.nRow2) { ScRange aDirtyRange( |