]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
Fix type mismatch in wxLogTrace() call in wxSocket.
[wxWidgets.git] / src / gtk / control.cpp
index 626fbf167d05124c88b0fd1f2b1fe0e34ff0c864..24570f6afec6ee0e9580e9901b554c39722d3cbc 100644 (file)
@@ -229,9 +229,6 @@ wxControl::GetDefaultAttributesFromGTKWidget(GtkWidget* widget,
         return wxWindow::GetClassDefaultAttributes(wxWINDOW_VARIANT_NORMAL);
     }
 
-    if (state == -1)
-        state = GTK_STATE_NORMAL;
-
     // get the style's colours
     attr.colFg = wxColour(style->fg[state]);
     if (useBase)