From: <mar...@us...> - 2014-08-22 19:02:42
|
Revision: 7561 http://sourceforge.net/p/freeorion/code/7561 Author: marcel_metz Date: 2014-08-22 19:02:38 +0000 (Fri, 22 Aug 2014) Log Message: ----------- Removed position parameters from GraphControl constructor. Modified Paths: -------------- trunk/FreeOrion/UI/EncyclopediaDetailPanel.cpp trunk/FreeOrion/UI/GraphControl.cpp trunk/FreeOrion/UI/GraphControl.h Modified: trunk/FreeOrion/UI/EncyclopediaDetailPanel.cpp =================================================================== --- trunk/FreeOrion/UI/EncyclopediaDetailPanel.cpp 2014-08-22 18:38:50 UTC (rev 7560) +++ trunk/FreeOrion/UI/EncyclopediaDetailPanel.cpp 2014-08-22 19:02:38 UTC (rev 7561) @@ -537,7 +537,7 @@ m_description_box->SetColor(GG::CLR_ZERO); m_description_box->SetInteriorColor(ClientUI::CtrlColor()); - m_graph = new GraphControl(GG::X0, GG::Y0, GG::X1, GG::Y1); + m_graph = new GraphControl(); m_graph->ShowPoints(false); SearchEdit* search_edit = new SearchEdit(); Modified: trunk/FreeOrion/UI/GraphControl.cpp =================================================================== --- trunk/FreeOrion/UI/GraphControl.cpp 2014-08-22 18:38:50 UTC (rev 7560) +++ trunk/FreeOrion/UI/GraphControl.cpp 2014-08-22 19:02:38 UTC (rev 7561) @@ -5,8 +5,8 @@ #include <GG/DrawUtil.h> #include <GG/ClrConstants.h> -GraphControl::GraphControl(GG::X x, GG::Y y, GG::X w, GG::Y h) : - GG::Control(x, y, w, h, GG::NO_WND_FLAGS), +GraphControl::GraphControl() : + GG::Control(GG::X0, GG::Y0, GG::X1, GG::Y1, GG::NO_WND_FLAGS), m_show_points(true), m_show_lines(true), m_show_scale(true), Modified: trunk/FreeOrion/UI/GraphControl.h =================================================================== --- trunk/FreeOrion/UI/GraphControl.h 2014-08-22 18:38:50 UTC (rev 7560) +++ trunk/FreeOrion/UI/GraphControl.h 2014-08-22 19:02:38 UTC (rev 7561) @@ -12,7 +12,7 @@ class GraphControl : public GG::Control { public: //! \name Structors //@{ - GraphControl(GG::X x, GG::Y y, GG::X w, GG::Y h); + GraphControl(); //@} //! \name Mutators //@{ |