incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1163398 - /incubator/ooo/trunk/main/sd/source/ui/dlg/present.cxx
Date Tue, 30 Aug 2011 21:28:25 GMT
Author: erack
Date: Tue Aug 30 21:28:24 2011
New Revision: 1163398

URL: http://svn.apache.org/viewvc?rev=1163398&view=rev
Log:
explicit braces to avoid ambiguous 'else'

gcc 4.5.1 complained about this, 4.6.1 did not, but..

Patch by: Pavel Janík <Pavel@Janik.cz>

Modified:
    incubator/ooo/trunk/main/sd/source/ui/dlg/present.cxx

Modified: incubator/ooo/trunk/main/sd/source/ui/dlg/present.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sd/source/ui/dlg/present.cxx?rev=1163398&r1=1163397&r2=1163398&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sd/source/ui/dlg/present.cxx (original)
+++ incubator/ooo/trunk/main/sd/source/ui/dlg/present.cxx Tue Aug 30 21:28:24 2011
@@ -255,10 +255,12 @@ void SdStartPresentationDlg::InitMonitor
             }
  
 			if (nSelectedIndex < 0)
+            {
                 if (nDefaultSelectedDisplay < 0)
                     nSelectedIndex = 0;
                 else
                     nSelectedIndex = nDefaultDisplayIndex;
+            }
 
 			maLBMonitor.SelectEntryPos((sal_uInt16)nSelectedIndex);
 		}



Mime
View raw message