aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuItem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/MenuItem.cc')
-rw-r--r--src/FbTk/MenuItem.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc
index f8ec4e9..fafedc0 100644
--- a/src/FbTk/MenuItem.cc
+++ b/src/FbTk/MenuItem.cc
@@ -284,7 +284,7 @@ unsigned int MenuItem::height(const MenuTheme &theme) const {
284unsigned int MenuItem::width(const MenuTheme &theme) const { 284unsigned int MenuItem::width(const MenuTheme &theme) const {
285 // textwidth + bevel width on each side of the text 285 // textwidth + bevel width on each side of the text
286 const unsigned int icon_width = height(theme); 286 const unsigned int icon_width = height(theme);
287 const unsigned int normal = theme.frameFont().textWidth(label().c_str(), label().size()) + 287 const unsigned int normal = theme.frameFont().textWidth(label(), label().size()) +
288 2 * (theme.bevelWidth() + icon_width); 288 2 * (theme.bevelWidth() + icon_width);
289 return m_icon.get() == 0 ? normal : normal + icon_width; 289 return m_icon.get() == 0 ? normal : normal + icon_width;
290} 290}