]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix test for wxFD_MULTIPLE.
authorRobert Roebling <robert@roebling.de>
Wed, 25 Oct 2006 07:34:15 +0000 (07:34 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 25 Oct 2006 07:34:15 +0000 (07:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/filedlgg.cpp

index e1c5770f7d4d2e940f60189ecc1649bebaed9479..ce6d0c0982f887556113248fa5694bcd1082962e 100644 (file)
@@ -1102,7 +1102,7 @@ bool wxGenericFileDialog::Create( wxWindow *parent,
     mainsizer->Add( staticsizer, 0, wxEXPAND | wxLEFT|wxRIGHT|wxBOTTOM, 10 );
 
     long style2 = ms_lastViewStyle;
-    if ( !HasFlag(wxFD_MULTIPLE) )
+    if ( style & wxFD_MULTIPLE == 0 )
         style2 |= wxLC_SINGLE_SEL;
 
 #ifdef __WXWINCE__