]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/utilsres.cpp
1. some minor compilation fixes in datetime.cppm
[wxWidgets.git] / src / gtk / utilsres.cpp
index cf8a946da7e89b3fc37e71f402ea65a6521cc9f8..749a722e1de4fdd46bcfdaa71e6bb8e1a36660cf 100644 (file)
@@ -62,23 +62,23 @@ bool wxGetResource(const wxString& section, const wxString& entry, char **value,
 {
     wxString filename( file );
     if (filename.IsEmpty()) filename = wxT(".wxWindows");
-    
+
     wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename );
-    
+
     conf.SetPath( section );
-    
+
     wxString result;
-    if (conf.Write( entry, &result ))
+    if (conf.Read( entry, &result ))
     {
         if (!result.IsEmpty())
-       {
+        {
             char *s = new char[result.Len()+1];
-           wxStrcpy( s, result.c_str() );
-           *value = s;
-           return TRUE;
-       }
+            wxStrcpy( s, result.c_str() );
+            *value = s;
+            return TRUE;
+        }
     }
-    
+
     return FALSE;
 }