(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed
--- a/src/rail_gui.cpp Sat Apr 05 11:27:50 2008 +0000
+++ b/src/rail_gui.cpp Sat Apr 05 11:35:32 2008 +0000
@@ -601,7 +601,7 @@
case WE_PLACE_DRAG: {
/* no dragging if you have pressed the convert button */
- if (_convert_signal_button && w->IsWidgetLowered(RTW_BUILD_SIGNALS)) return;
+ if (FindWindowById(WC_BUILD_SIGNAL, 0) != NULL && _convert_signal_button && w->IsWidgetLowered(RTW_BUILD_SIGNALS)) return;
VpSelectTilesWithMethod(e->we.place.pt.x, e->we.place.pt.y, e->we.place.select_method);
return;