incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r1172111 - /incubator/ooo/trunk/main/sw/source/core/frmedt/feshview.cxx
Date Sat, 17 Sep 2011 22:38:57 GMT
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 = *



Mime
View raw message