summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-01-23 23:10:43 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-01-23 23:15:19 +0100
commit3dbd1e69b94b6e91db5ddc36ed6808d7be0a418c (patch)
treeb8e66bd0ae6872647e6de2daf6da93cb7406fccd /sw
parent6bb2f330daab558730c0a1a267ac6d09c746d5ef (diff)
do not use manual iteration
Change-Id: If456086bc6195c04794178df22d9c937bb7073b4
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/frmcrsr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/frmcrsr.cxx b/sw/source/core/text/frmcrsr.cxx
index c5dead749156..4c23e0de1e2b 100644
--- a/sw/source/core/text/frmcrsr.cxx
+++ b/sw/source/core/text/frmcrsr.cxx
@@ -119,7 +119,7 @@ bool sw_ChangeOffset( SwTxtFrm* pFrm, sal_Int32 nNew )
SwViewShell* pVsh = pFrm->getRootFrm()->GetCurrShell();
if( pVsh )
{
- if( pVsh->GetNext() != pVsh ||
+ if( pVsh->GetRingContainer().size() > 1 ||
( pFrm->GetDrawObjs() && pFrm->GetDrawObjs()->size() ) )
{
if( !pFrm->GetOfst() )