]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/control.cpp
don't return the next line text from GetLineText() for empty lines (patch 1697208)
[wxWidgets.git] / src / gtk1 / control.cpp
index e41fdb9cbe662f0564c2c0208fc3948fc04a8beb..4e0db419e601faadbe2edf87b5c5bdeced8bb951 100644 (file)
@@ -120,7 +120,7 @@ void wxControl::GTKSetLabelForFrame(GtkFrame *w, const wxString& label)
 
     const wxString labelGTK = GTKRemoveMnemonics(label);
 
-    gtk_frame_set_label(w, labelGTK.empty() ? (char *)NULL
+    gtk_frame_set_label(w, labelGTK.empty() ? (const char *)NULL
                                             : wxGTK_CONV(labelGTK));
 }