Kaydet (Commit) 37e93699 authored tarafından Michael Stahl's avatar Michael Stahl

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
üst fc805abc
...@@ -204,6 +204,7 @@ bool SwUndoFormatAttr::IsFormatInDoc( SwDoc* pDoc ) ...@@ -204,6 +204,7 @@ bool SwUndoFormatAttr::IsFormatInDoc( SwDoc* pDoc )
switch ( m_nFormatWhich ) switch ( m_nFormatWhich )
{ {
case RES_TXTFMTCOLL: case RES_TXTFMTCOLL:
case RES_CONDTXTFMTCOLL:
bFound = pDoc->GetTextFormatColls()->Contains( m_pFormat ); bFound = pDoc->GetTextFormatColls()->Contains( m_pFormat );
break; break;
...@@ -301,7 +302,9 @@ void SwUndoFormatAttr::RepeatImpl(::sw::RepeatContext & rContext) ...@@ -301,7 +302,9 @@ void SwUndoFormatAttr::RepeatImpl(::sw::RepeatContext & rContext)
} }
break; break;
case RES_TXTFMTCOLL: { case RES_TXTFMTCOLL:
case RES_CONDTXTFMTCOLL:
{
SwTextNode *const pNd = SwTextNode *const pNd =
rContext.GetRepeatPaM().GetNode().GetTextNode(); rContext.GetRepeatPaM().GetNode().GetTextNode();
if( pNd ) { 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