| commit | 3d98d35cfab126764ae5a35cee0a4da56baab648 | [log] |
|---|---|---|
| author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | Sun Jul 04 11:58:07 2021 +0200 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Jul 05 15:41:20 2021 +0200 |
| tree | adf8b409e5038f10f2683d74f02f39c97d80aa51 | |
| parent | cd58a836d38865aa908892bdcdbcfa2c9d0656a6 [diff] |
tdf#140506: fix repeated table header switching this fixes regression from f899c28f210c6565b7227d7665d449f194d2af8e, which asssumed all frames to be listening to the Notifier of the format. That is not (yet) the case. Change-Id: Ib684842c571823eeb72824196ccfdb1df8179e85 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118370 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit 25e09087d8e2c5cecca1d548c69a263c7bf8b7ca) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118417 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index a17ce9b..3ddfd20 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx
@@ -2904,9 +2904,9 @@ void SwDoc::SetRowsToRepeat( SwTable &rTable, sal_uInt16 nSet ) std::make_unique<SwUndoTableHeadline>(rTable, rTable.GetRowsToRepeat(), nSet) ); } rTable.SetRowsToRepeat(nSet); const SwMsgPoolItem aChg(RES_TBLHEADLINECHG); rTable.SetRowsToRepeat( nSet ); rTable.GetFrameFormat()->GetNotifier().Broadcast(sw::LegacyModifyHint(&aChg, &aChg)); rTable.GetFrameFormat()->CallSwClientNotify(sw::LegacyModifyHint(&aChg, &aChg)); getIDocumentState().SetModified(); }