summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@libreoffice.org>2013-10-07 21:09:26 +0200
committerMichael Stahl <mstahl@redhat.com>2013-10-09 13:43:49 +0200
commit9685d20f2a0526a4c454cea1bd947eccbaeefa84 (patch)
tree6b00f92b3fbea7a25d6694d675444630f14af87f
parent88fd07d5404ec10fc52373441e67156ea3aea9d3 (diff)
Fix fdo#70143 by reporting swaping of positions
(regression from 6b08fe833186a04f9aef698a540d3a7493ac4519, which changed SwUndoReplace::Impl::SetEnd to use the wrongly set end position in rPam) Change-Id: I14c6f58bc5c1418c69eb565d42f1829856eed58c
-rw-r--r--sw/source/core/doc/docedt.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 2734e7f09eae..c269b1d8667d 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -2440,7 +2440,8 @@ SetRedlineMode( eOld );
}
}
- *rPam.GetMark() = *aDelPam.GetMark();
+ if (aDelPam.GetMark() != pStt)
+ *rPam.GetPoint() = *aDelPam.GetMark();
++aPtNd;
rPam.GetMark()->nNode = aPtNd;