]> git.saurik.com Git - wxWidgets.git/commitdiff
add missing braces to quiet gcc warnings about missing braces around initializer
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Aug 2005 22:15:30 +0000 (22:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Aug 2005 22:15:30 +0000 (22:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/textctrl.cpp

index 14e76f18f787382c2a23daab697536d131a884d8..58e7befd834fa0e28d338da302fbcdc109425a0c 100644 (file)
@@ -2767,7 +2767,8 @@ wxMacMLTEHIViewControl::wxMacMLTEHIViewControl( wxTextCtrl *wxPeer,
     wxString st = str ;
     wxMacConvertNewlines10To13( &st ) ;
 
-    HIRect hr = { bounds.left , bounds.top , bounds.right - bounds.left , bounds.bottom- bounds.top } ;
+    HIRect hr = { { bounds.left , bounds.top} ,
+                  { bounds.right - bounds.left , bounds.bottom - bounds.top} } ;
 
     m_scrollView = NULL ;
     TXNFrameOptions frameOptions = FrameOptionsFromWXStyle( style ) ;