diff options
author | Eike Rathke <erack@apache.org> | 2011-08-30 20:28:24 +0000 |
---|---|---|
committer | Eike Rathke <erack@apache.org> | 2011-08-30 20:28:24 +0000 |
commit | d9c5db6eb14a0a64611778e97134be4ddefd606f (patch) | |
tree | 52441060171608654073f20d0fcd4f137580f4b0 /sd | |
parent | c8f9f15b33a7e309a94a089285cb169f349bc4ad (diff) |
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>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/present.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/dlg/present.cxx b/sd/source/ui/dlg/present.cxx index 51f49bc03032..285eb73b2776 100644 --- a/sd/source/ui/dlg/present.cxx +++ b/sd/source/ui/dlg/present.cxx @@ -255,10 +255,12 @@ void SdStartPresentationDlg::InitMonitorSettings() } if (nSelectedIndex < 0) + { if (nDefaultSelectedDisplay < 0) nSelectedIndex = 0; else nSelectedIndex = nDefaultDisplayIndex; + } maLBMonitor.SelectEntryPos((sal_uInt16)nSelectedIndex); } |