summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2021-07-04 11:58:07 +0200
committerAndras Timar <andras.timar@collabora.com>2021-07-11 13:43:53 +0200
commitbc08f088402d052933a3a44eed5a96941cfeaa4f (patch)
tree7a4ad5c2f299bfa56b96839c6a37bf2e79c9d96e /sw
parent60d24fccf2c2dfc3f2aa547f2cb09d5d09cdd90c (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/+/118418
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/ndtbl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index f30ebce4c0f8..cd87b35902ca 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -2897,9 +2897,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();
}