summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2000-10-26 16:14:24 +0000
committerjp <jp@openoffice.org>2000-10-26 16:14:24 +0000
commitd6cd17db1d418d227e3bdfe5f05620a118619432 (patch)
tree15392e023a0ad868928b92909bea37c0d3fd59d6
parent8fa862c34c948624be38138bcf2b6d323ddbbd40 (diff)
Bug #78589#: _MoveNodes - a section can be empty
-rw-r--r--sw/source/core/docnode/nodes.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index dc5147530b9e..0382dc6fc1fc 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: nodes.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-19 00:08:18 $
+ * last change: $Author: jp $ $Date: 2000-10-26 17:14:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -774,6 +774,12 @@ BOOL SwNodes::_MoveNodes( const SwNodeRange& aRange, SwNodes & rNodes,
case ND_TABLENODE:
case ND_STARTNODE:
{
+ if( !nInsPos ) // empty section -> nothing to do
+ {
+ aRg.aEnd--;
+ break;
+ }
+
if( !nLevel ) // es wird eine Stufe runter gestuft
{
// erzeuge die Runterstufung