]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/window.cpp
don't overwrite the existing local file if we failed to open it but it does exist
[wxWidgets.git] / src / motif / window.cpp
index 9a7d7eb156fbbbc678ca173af4212022b7683012..efc13e52739d446f4e9778ee4206bea3ead9f1a5 100644 (file)
@@ -629,12 +629,13 @@ void wxWindow::Lower()
 
 void wxWindow::SetLabel(const wxString& label)
 {
-    XtVaSetValues((Widget)GetMainWidget(), XmNtitle, label.mb_str(), NULL);
+    XtVaSetValues((Widget)GetMainWidget(), XmNtitle,
+                  (const char*)label.mb_str(), NULL);
 }
 
 wxString wxWindow::GetLabel() const
 {
-    char *label;
+    char *label = NULL;
     XtVaGetValues((Widget)GetMainWidget(), XmNtitle, &label, NULL);
 
     return wxString(label);