tdf#94449: special text attributes are not removed with paragraph style
commit 3c0805e1f4
introduced removal of
all character attributes applied to the complete paragraph if a paragraph
style was applied. This should not remove special attributes like index
entries, reference marks etc.
Change-Id: I6fe92066269da2cf10c871ca319faf6fda91f4be
Reviewed-on: https://gerrit.libreoffice.org/23591
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
This commit is contained in:
@@ -605,7 +605,8 @@ void SwTextNode::RstTextAttr(
|
|||||||
for (i = 0; i < m_pSwpHints->Count(); ++i)
|
for (i = 0; i < m_pSwpHints->Count(); ++i)
|
||||||
{
|
{
|
||||||
SwTextAttr* pHint = m_pSwpHints->Get(i);
|
SwTextAttr* pHint = m_pSwpHints->Get(i);
|
||||||
if (pHint->GetStart() != nStt)
|
if ( (isTXTATR_WITHEND(pHint->Which()) && RES_TXTATR_AUTOFMT != pHint->Which())
|
||||||
|
|| pHint->GetStart() != nStt)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const sal_Int32* pHintEnd = pHint->GetEnd();
|
const sal_Int32* pHintEnd = pHint->GetEnd();
|
||||||
|
Reference in New Issue
Block a user