summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-03-01 16:05:27 +0100
committerMichael Stahl <mst@openoffice.org>2011-03-01 16:05:27 +0100
commit4592e6d727ae5bd72faa9e630c07778f00edf5eb (patch)
tree1e57dccd9aabf68c0844160632e9959d8a5668fe /sw
parentf62a54978fd25efb22e0289ce39f85d343b69956 (diff)
sw34bf04: #i114548#: sw::MarkBase: do not create bookmarks with start==end
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/bookmrk.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index 18dc67cfc958..77c7f774843e 100644
--- a/sw/source/core/crsr/bookmrk.cxx
+++ b/sw/source/core/crsr/bookmrk.cxx
@@ -109,7 +109,7 @@ namespace sw { namespace mark
, m_aName(rName)
{
lcl_FixPosition(*m_pPos1);
- if(aPaM.HasMark())
+ if (aPaM.HasMark() && (*aPaM.GetMark() != *aPaM.GetPoint()))
{
MarkBase::SetOtherMarkPos(*(aPaM.GetMark()));
lcl_FixPosition(*m_pPos2);