You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2011/09/18 00:38:57 UTC
svn commit: r1172111 -
/incubator/ooo/trunk/main/sw/source/core/frmedt/feshview.cxx
Author: mst
Date: Sat Sep 17 22:38:56 2011
New Revision: 1172111
URL: http://svn.apache.org/viewvc?rev=1172111&view=rev
Log:
sw34bf06: #i117863# - method <SwFEShell::GetSectionWidth(..)> - correct for-loop conditions
# HG changeset patch
# User Oliver-Rainer Wittmann <od...@openoffice.org>
# Date 1302873170 -7200
# Node ID ec59153c0f36b94057baa1b381583052dcb1b87b
# Parent d2030e65b6b95bc3796cb3e09aa229edef8c3c0a
Modified:
incubator/ooo/trunk/main/sw/source/core/frmedt/feshview.cxx (contents, props changed)
Modified: incubator/ooo/trunk/main/sw/source/core/frmedt/feshview.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/core/frmedt/feshview.cxx?rev=1172111&r1=1172110&r2=1172111&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/core/frmedt/feshview.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/core/frmedt/feshview.cxx Sat Sep 17 22:38:56 2011
@@ -2822,9 +2822,13 @@ long SwFEShell::GetSectionWidth( SwFmt&
while( pSect );
}
SwIterator<SwSectionFrm,SwFmt> aIter( rFmt );
- for ( SwSectionFrm* pSct = aIter.First(); pFrm; pFrm = aIter.Next() )
- if( !pSct->IsFollow() )
- return pSct->Frm().Width();
+ for ( SwSectionFrm* pSct = aIter.First(); pSct; pSct = aIter.Next() )
+ {
+ if( !pSct->IsFollow() )
+ {
+ return pSct->Frm().Width();
+ }
+ }
return 0;
}
Propchange: incubator/ooo/trunk/main/sw/source/core/frmedt/feshview.cxx
------------------------------------------------------------------------------
svn:executable = *