summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/inc/IMark.hxx2
-rw-r--r--sw/source/core/doc/docbm.cxx4
2 files changed, 2 insertions, 4 deletions
diff --git a/sw/inc/IMark.hxx b/sw/inc/IMark.hxx
index ac033d72c61f..7c0a51f8427d 100644
--- a/sw/inc/IMark.hxx
+++ b/sw/inc/IMark.hxx
@@ -64,8 +64,6 @@ namespace sw { namespace mark
{ return GetMarkStart() < rOther.GetMarkStart(); }
bool operator==(const IMark& rOther) const
{ return GetMarkStart() == rOther.GetMarkStart(); }
- bool StartsAfter(const SwPosition& rPos) const
- { return GetMarkStart() > rPos; }
bool EndsBefore(const SwPosition& rPos) const
{ return GetMarkEnd() < rPos; }
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index e242b32d74ea..7c27f481232e 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -175,7 +175,7 @@ namespace
bool operator()(SwPosition const& rPos,
std::shared_ptr<sw::mark::IMark> const& pMark)
{
- return pMark->StartsAfter(rPos);
+ return pMark->GetMarkStart() > rPos;
}
};
@@ -291,7 +291,7 @@ namespace
{
// Once we reach a mark starting after the target pos
// we do not need to continue
- if(ppCurrentMark->get()->StartsAfter(rPos))
+ if(ppCurrentMark->get()->GetMarkStart() > rPos)
break;
if(IDocumentMarkAccess::GetType(**ppCurrentMark) == eType)
{