From bb2ce5df8a814f9b858b6919356f7d37f10e6b9f Mon Sep 17 00:00:00 2001 From: Mathias Gumz <akira at fluxbox dot org> Date: Tue, 1 Mar 2011 14:32:21 +0100 Subject: fix misordered Toolbar::Placement strings, closes 3195721 --- src/Toolbar.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Toolbar.cc b/src/Toolbar.cc index cb1a956..1e43b5c 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -101,8 +101,8 @@ const ToolbarPlacementString placement_strings[] = { { Toolbar::LEFTBOTTOM, "LeftBottom" }, { Toolbar::LEFTCENTER, "LeftCenter" }, { Toolbar::LEFTTOP, "LeftTop" }, - { Toolbar::RIGHTCENTER, "RightCenter" }, { Toolbar::RIGHTBOTTOM, "RightBottom" }, + { Toolbar::RIGHTCENTER, "RightCenter" }, { Toolbar::RIGHTTOP, "RightTop" } }; @@ -115,8 +115,8 @@ string FbTk::Resource<Toolbar::Placement>:: getString() const { size_t i = (m_value == FbTk::Util::clamp(m_value, Toolbar::TOPLEFT, Toolbar::RIGHTTOP) - ? m_value - : Toolbar::DEFAULT) - 1; + ? m_value + : Toolbar::DEFAULT) - Toolbar::TOPLEFT; return placement_strings[i].str; } -- cgit v0.11.2