diff options
author | Kurt Zenker <kz@openoffice.org> | 2009-12-02 15:52:17 +0100 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2009-12-02 15:52:17 +0100 |
commit | 8d44c769c72d70e580a386c3e07596b592a6d500 (patch) | |
tree | 87999179643db2601b9265813838e235e6895799 /svx/source | |
parent | ad1bc80b6d8391195ec6ccaf25ee12c1d02a5850 (diff) | |
parent | 564876cf54ab4ec1ab49051d925a278d8585e781 (diff) |
CWS-TOOLING: integrate CWS tl75_DEV300
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/editeng/editdoc.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/svx/source/editeng/editdoc.cxx b/svx/source/editeng/editdoc.cxx index acf278e2d01f..c43c91a02d1f 100644 --- a/svx/source/editeng/editdoc.cxx +++ b/svx/source/editeng/editdoc.cxx @@ -1427,9 +1427,11 @@ XubString EditDoc::GetParaAsString( ContentNode* pNode, USHORT nStartPos, USHORT else pNextFeature = 0; // Feature interessiert unten nicht - DBG_ASSERT( nEnd >= nIndex, "Ende vorm Index?" ); - aStr += XubString( *pNode, nIndex, nEnd-nIndex ); + //!! beware of sub string length of -1 which is also defined as STRING_LEN and + //!! thus would result in adding the whole sub string up to the end of the node !! + if (nEnd > nIndex) + aStr += XubString( *pNode, nIndex, nEnd - nIndex ); if ( pNextFeature ) { @@ -1790,7 +1792,12 @@ BOOL EditDoc::RemoveAttribs( ContentNode* pNode, USHORT nStart, USHORT nEnd, Edi } if ( bChanged ) + { + // char attributes need to be sorted by start again + pNode->GetCharAttribs().ResortAttribs(); + SetModified( TRUE ); + } return bChanged; } |