From: <geo...@us...> - 2014-01-27 11:17:04
|
Revision: 6756 http://sourceforge.net/p/freeorion/code/6756 Author: geoffthemedio Date: 2014-01-27 11:17:01 +0000 (Mon, 27 Jan 2014) Log Message: ----------- Fixed bombard button layout when invasion button is also present. Modified Paths: -------------- trunk/FreeOrion/UI/SidePanel.cpp Modified: trunk/FreeOrion/UI/SidePanel.cpp =================================================================== --- trunk/FreeOrion/UI/SidePanel.cpp 2014-01-27 11:11:28 UTC (rev 6755) +++ trunk/FreeOrion/UI/SidePanel.cpp 2014-01-27 11:17:01 UTC (rev 6756) @@ -996,10 +996,12 @@ if (m_colonize_button && m_colonize_button->Parent() == this) { m_colonize_button->MoveTo(GG::Pt(left, y)); y += m_colonize_button->Height() + EDGE_PAD; - } else if (m_invade_button && m_invade_button->Parent() == this) { + } + if (m_invade_button && m_invade_button->Parent() == this) { m_invade_button->MoveTo(GG::Pt(left, y)); y += m_invade_button->Height() + EDGE_PAD; - } else if (m_bombard_button && m_bombard_button->Parent() == this) { + } + if (m_bombard_button && m_bombard_button->Parent() == this) { m_bombard_button->MoveTo(GG::Pt(left, y)); y += m_bombard_button->Height() + EDGE_PAD; } |