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

(-)sw/source/filter/ww8/ww8par5.cxx (-3 / +8 lines)
Lines 987-995 Link Here
987
        pStrm->Seek( nOldPos );
987
        pStrm->Seek( nOldPos );
988
988
989
        //#124725# field codes which contain '/' or '.' are not displayed in WinWord
989
        //#124725# field codes which contain '/' or '.' are not displayed in WinWord
990
        if (!aStr.EqualsAscii(" ADDIN", 0, 6) &&
990
        // skip if it is formula field or found space before. see #i119446, #i119585.
991
            (aStr.Search('.') != STRING_NOTFOUND ||
991
        const xub_StrLen nDotPos = aStr.Search('.');
992
             aStr.Search('/') != STRING_NOTFOUND))
992
        const xub_StrLen nSlashPos = aStr.Search('/');
993
        const xub_StrLen nSpacePos = aStr.Search( ' ', 1 );
994
995
        if ( !( aStr.EqualsAscii( "=", 1, 1 )) && 
996
            (( nDotPos != STRING_NOTFOUND ) && ( nDotPos < nSpacePos )) ||
997
            (( nSlashPos != STRING_NOTFOUND ) && ( nSlashPos < nSpacePos )))
993
            return aF.nLen;
998
            return aF.nLen;
994
        else
999
        else
995
            return aF.nLen - aF.nLRes - 1;  // so viele ueberlesen, das Resultfeld
1000
            return aF.nLen - aF.nLRes - 1;  // so viele ueberlesen, das Resultfeld

Return to issue 119446