summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-20 02:07:00 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-20 02:25:04 +0100
commit85e969fc230a49ea40fd3a799bc5828d3e7c2e95 (patch)
tree608f4905671c4d55d4933b1b40cbbfe9261c5073
parent87bc662386ffe53b8b4b1fa07deb0bb665fe39c9 (diff)
use IsChanged() some more
Change-Id: Ic32f27fe5aa6be115af0d3f28252b98c7b1788a3
-rw-r--r--sw/inc/calbck.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index 062ebdf55f0f..2af23b7f9d17 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -317,7 +317,7 @@ public:
}
TElementType* Next()
{
- if( m_pPosition == m_pCurrent )
+ if(!IsChanged())
m_pPosition = GetRightOfPos();
while(m_pPosition && !m_pPosition->IsA( TYPE(TElementType) ) )
m_pPosition = GetRightOfPos();
@@ -352,7 +352,7 @@ public:
}
SwClient* Next()
{
- if( m_pPosition == m_pCurrent )
+ if(!IsChanged())
m_pPosition = GetRightOfPos();
return Sync();
}