summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-03 15:39:30 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-08 14:28:06 +0000
commitfd083e392651a2c381ab1fe8b9a1f2a1ec534354 (patch)
tree500ea29170174709c1b54a802dfde21f1edfbb12
parentb2f68b5bf53bbcd95a88b8372214546897ac4e64 (diff)
Resolves: tdf#90138 don't try to save a marks OtherPos if it doesn't have one
Change-Id: I522a236015c91c0744b3018d3d4e4d6c65ea19ab (cherry picked from commit 4fe5b44b15647542b1550deaeee43ec3d1e57591) Reviewed-on: https://gerrit.libreoffice.org/15141 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sw/source/core/undo/undobj.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx
index 78697dcf1a80..2134e04a7c95 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -783,7 +783,7 @@ void SwUndoSaveCntnt::DelCntntIndex( const SwPosition& rMark,
if ( *pStt < rAnnotationEndPos && rAnnotationEndPos <= *pEnd )
{
bSavePos = true;
- bSaveOtherPos = true;
+ bSaveOtherPos = pBkmk->IsExpanded(); //tdf#90138, only save the other pos if there is one
}
}
}