INTEGRATION: CWS swstability01 (1.19.4); FILE MERGED

2006/02/10 09:37:35 ama 1.19.4.1: #125790#: Comment to crash when copying parts of sections
This commit is contained in:
Vladimir Glazounov
2006-03-31 08:51:33 +00:00
parent d2adf38ebc
commit a54d8f837f

View File

@@ -4,9 +4,9 @@
* *
* $RCSfile: nodes.cxx,v $ * $RCSfile: nodes.cxx,v $
* *
* $Revision: 1.19 $ * $Revision: 1.20 $
* *
* last change: $Author: rt $ $Date: 2006-02-06 17:19:40 $ * last change: $Author: vg $ $Date: 2006-03-31 09:51:33 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
@@ -2123,7 +2123,10 @@ void SwNodes::_CopyNodes( const SwNodeRange& rRange,
break; break;
case ND_SECTIONNODE: // SectionNode case ND_SECTIONNODE: // SectionNode
// der gesamte Bereich oder nur ein Teil ?? // If the end of the section is outside the copy range,
// the section node will skipped, not copied!
// If someone want to change this behaviour, he has to adjust the function
// lcl_NonCopyCount(..) in ndcopy.cxx which relies on it.
if( pAktNode->EndOfSectionIndex() < aRg.aEnd.GetIndex() ) if( pAktNode->EndOfSectionIndex() < aRg.aEnd.GetIndex() )
{ {
// also der gesamte, lege einen neuen SectionNode an // also der gesamte, lege einen neuen SectionNode an