You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by er...@apache.org on 2011/08/30 23:28:25 UTC

svn commit: r1163398 - /incubator/ooo/trunk/main/sd/source/ui/dlg/present.cxx

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 <Pa...@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);
 		}