From 23e24e87e52d164b392837c95db798ed0a48e35a Mon Sep 17 00:00:00 2001 From: tchernobog Date: Fri, 1 Sep 2006 22:51:16 +0000 Subject: [PATCH] - Aesthetics git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@986 3ecf2c5c-341e-0410-92b4-d18e462d057c --- src/gui_builder.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui_builder.cc b/src/gui_builder.cc index f0ed047..dee243c 100644 --- a/src/gui_builder.cc +++ b/src/gui_builder.cc @@ -448,10 +448,9 @@ GuiBuilder::GuiBuilder(const std::string& gladefile) // Main simulation widget ScrolledWindow* simulation_window = NULL; _refXml->get_widget("SimulationScrolledWindow", simulation_window); - _simulation_widget = new SimulationWidget(Simulation::get_instance()); - SimulationWidget* simulation_widget = manage(_simulation_widget); - simulation_window->add(*simulation_widget); - simulation_widget->show(); + _simulation_widget = manage(new SimulationWidget(Simulation::get_instance())); + simulation_window->add(*_simulation_widget); + _simulation_widget->show(); }