diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Toolbar.cc | 6 |
1 files 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[] = { | |||
101 | { Toolbar::LEFTBOTTOM, "LeftBottom" }, | 101 | { Toolbar::LEFTBOTTOM, "LeftBottom" }, |
102 | { Toolbar::LEFTCENTER, "LeftCenter" }, | 102 | { Toolbar::LEFTCENTER, "LeftCenter" }, |
103 | { Toolbar::LEFTTOP, "LeftTop" }, | 103 | { Toolbar::LEFTTOP, "LeftTop" }, |
104 | { Toolbar::RIGHTCENTER, "RightCenter" }, | ||
105 | { Toolbar::RIGHTBOTTOM, "RightBottom" }, | 104 | { Toolbar::RIGHTBOTTOM, "RightBottom" }, |
105 | { Toolbar::RIGHTCENTER, "RightCenter" }, | ||
106 | { Toolbar::RIGHTTOP, "RightTop" } | 106 | { Toolbar::RIGHTTOP, "RightTop" } |
107 | }; | 107 | }; |
108 | 108 | ||
@@ -115,8 +115,8 @@ string FbTk::Resource<Toolbar::Placement>:: | |||
115 | getString() const { | 115 | getString() const { |
116 | 116 | ||
117 | size_t i = (m_value == FbTk::Util::clamp(m_value, Toolbar::TOPLEFT, Toolbar::RIGHTTOP) | 117 | size_t i = (m_value == FbTk::Util::clamp(m_value, Toolbar::TOPLEFT, Toolbar::RIGHTTOP) |
118 | ? m_value | 118 | ? m_value |
119 | : Toolbar::DEFAULT) - 1; | 119 | : Toolbar::DEFAULT) - Toolbar::TOPLEFT; |
120 | return placement_strings[i].str; | 120 | return placement_strings[i].str; |
121 | } | 121 | } |
122 | 122 | ||