[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - sw/source

Oliver Specht oliver.specht at cib.de
Thu Apr 14 13:54:28 UTC 2016


 sw/source/core/txtnode/txtedt.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit af103f2c0425777afcb616bd1a2c582cfd256b25
Author: Oliver Specht <oliver.specht at cib.de>
Date:   Tue Mar 29 10:59:30 2016 +0200

    tdf#94449: special text attributes are not removed with paragraph style
    
    commit 3c0805e1f4f4d14e92c7e655d59c87de5c207e48 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 at libreoffice.org>
    Reviewed-by: Oliver Specht <oliver.specht at cib.de>
    (cherry picked from commit 07aa86973f4c312eac92e0d4b32b607f5f991ddb)
    Reviewed-on: https://gerrit.libreoffice.org/24087
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index 5064e00..01e55e4 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -606,7 +606,8 @@ void SwTextNode::RstTextAttr(
         for (i = 0; i < m_pSwpHints->Count(); ++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;
 
             const sal_Int32* pHintEnd = pHint->GetEnd();


More information about the Libreoffice-commits mailing list