summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-01-23 23:09:40 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-01-23 23:15:19 +0100
commit6bb2f330daab558730c0a1a267ac6d09c746d5ef (patch)
tree44c1eb1298c5fffb9b113418fe12d8b320cd78cc /sw
parentf5c6391b2e3ef703bc4d4efd691f79f1605d5283 (diff)
do not use manual iteration
Change-Id: Ia7afbea8872618d070dbdf6029cef3cec2425f2c
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/vprint.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx
index ef1d4569f5b4..80ba9ce1666d 100644
--- a/sw/source/core/view/vprint.cxx
+++ b/sw/source/core/view/vprint.cxx
@@ -601,7 +601,7 @@ void SwViewShell::PrtOle2( SwDoc *pDoc, const SwViewOption *pOpt, const SwPrintD
pSh->maVisArea = aSwRect;
if ( pSh->GetViewOptions()->getBrowseMode() &&
- pSh->GetNext() == pSh )
+ pSh->GetRingContainer().size() == 1 )
{
pSh->CheckBrowseView( false );
pSh->GetLayout()->Lower()->InvalidateSize();