From e63137f47f01b9567d9d4d9984ef0c5871d95db4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 11 May 2008 11:41:18 +0000 Subject: (svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors. --- src/autoreplace_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/autoreplace_gui.cpp') diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp index 77b01e74f..af5d3d4a6 100644 --- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -301,6 +301,8 @@ public: this->caption_color = _local_player; this->sel_group = id_g; this->vscroll2.cap = this->vscroll.cap; // these two are always the same + + this->FindWindowPlacementAndResize(desc); } virtual void OnPaint() -- cgit v1.2.3-54-g00ecf