View | Details | Raw Unified | Return to issue 111286
Collapse All | Expand All

(-)a/sw/source/core/txtnode/ndtxt.cxx (-1 / +8 lines)
Lines 1683-1689 Link Here
1683
		{
1683
		{
1684
            pNewHt = pDest->InsertItem( pHt->GetAttr(), nAttrStt,
1684
            pNewHt = pDest->InsertItem( pHt->GetAttr(), nAttrStt,
1685
                                nAttrEnd, nsSetAttrMode::SETATTR_NOTXTATRCHR );
1685
                                nAttrEnd, nsSetAttrMode::SETATTR_NOTXTATRCHR );
1686
            lcl_CopyHint( nWhich, pHt, pNewHt, pOtherDoc, pDest );
1686
            // InsertItem may return 0 if the hint could not be inserted
1687
            // (for example a footnote field can not appear in another
1688
            // footnote or in a frame) or if the hint was merged with
1689
            // another hint. Avoid a crash in this case.
1690
            if (pNewHt)
1691
            {
1692
                lcl_CopyHint( nWhich, pHt, pNewHt, pOtherDoc, pDest );
1693
            }
1687
        }
1694
        }
1688
1695
1689
		if( RES_TXTATR_REFMARK == nWhich && !pEndIdx && !bCopyRefMark )
1696
		if( RES_TXTATR_REFMARK == nWhich && !pEndIdx && !bCopyRefMark )

Return to issue 111286