Kaydet (Commit) 183c317f authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Miklos Vajna

tdf#83223: sw: fix Undo of format change of conditional para style

SwUndoFormatAttr was simply missing a case for RES_CONDTXTFMTCOLL.
Handle it the same way as an oridnary paragraph style, which seems to
work for me.

Change-Id: Ib529beb1116633e4890d5b51df39da21de485db9
(cherry picked from commit 37e93699)
Reviewed-on: https://gerrit.libreoffice.org/17428Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 4acfac85
......@@ -204,6 +204,7 @@ bool SwUndoFormatAttr::IsFormatInDoc( SwDoc* pDoc )
switch ( m_nFormatWhich )
{
case RES_TXTFMTCOLL:
case RES_CONDTXTFMTCOLL:
bFound = pDoc->GetTextFormatColls()->Contains( m_pFormat );
break;
......@@ -301,7 +302,9 @@ void SwUndoFormatAttr::RepeatImpl(::sw::RepeatContext & rContext)
}
break;
case RES_TXTFMTCOLL: {
case RES_TXTFMTCOLL:
case RES_CONDTXTFMTCOLL:
{
SwTextNode *const pNd =
rContext.GetRepeatPaM().GetNode().GetTextNode();
if( pNd ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment