summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-03 15:39:30 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2015-04-09 12:28:58 +0000
commitbdbb20758c210a4ac3732dc7d7d0e6e8aa048615 (patch)
treeaa6d5395216a69add1d5cda4e1451fee8d98c7ea /sw
parent81cb36b2678f41240829de10a0783a3040f8ec85 (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/15140 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com> Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sw')
-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 45443d194683..91cdbdbd789c 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -760,7 +760,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
}
}
}