diff options
author | fluxgen <fluxgen> | 2004-06-13 12:01:52 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-06-13 12:01:52 (GMT) |
commit | 463c7dab18d78973671c7d3aba3c47d62a30cc00 (patch) | |
tree | 39c39dce946da8d75c289f597b67db5752c5d5ac /src/FbTk/MenuTheme.cc | |
parent | 2475b2debcd9bd6f318ff1dcde8020ebeb81f11c (diff) | |
download | fluxbox_paul-463c7dab18d78973671c7d3aba3c47d62a30cc00.zip fluxbox_paul-463c7dab18d78973671c7d3aba3c47d62a30cc00.tar.bz2 |
minor fix
Diffstat (limited to 'src/FbTk/MenuTheme.cc')
-rw-r--r-- | src/FbTk/MenuTheme.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/FbTk/MenuTheme.cc b/src/FbTk/MenuTheme.cc index ebee2e5..18861ab 100644 --- a/src/FbTk/MenuTheme.cc +++ b/src/FbTk/MenuTheme.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: MenuTheme.cc,v 1.17 2004/06/13 10:59:54 fluxgen Exp $ | 22 | // $Id: MenuTheme.cc,v 1.18 2004/06/13 12:01:15 fluxgen Exp $ |
23 | 23 | ||
24 | #include "MenuTheme.hh" | 24 | #include "MenuTheme.hh" |
25 | 25 | ||
@@ -70,6 +70,9 @@ MenuTheme::MenuTheme(int screen_num): | |||
70 | m_real_title_height(*m_title_height), | 70 | m_real_title_height(*m_title_height), |
71 | m_real_item_height(*m_item_height) | 71 | m_real_item_height(*m_item_height) |
72 | { | 72 | { |
73 | m_real_item_height = m_real_item_height == 0 ? 1 : m_real_item_height; | ||
74 | m_real_title_height = m_real_title_height == 0 ? 1 : m_real_title_height; | ||
75 | |||
73 | // set default values | 76 | // set default values |
74 | *m_border_width = 0; | 77 | *m_border_width = 0; |
75 | *m_bevel_width = 0; | 78 | *m_bevel_width = 0; |
@@ -98,6 +101,9 @@ void MenuTheme::reconfigTheme() { | |||
98 | m_real_title_height = std::max(*m_title_height, | 101 | m_real_title_height = std::max(*m_title_height, |
99 | titleFont().height() + 2*bevelWidth()); | 102 | titleFont().height() + 2*bevelWidth()); |
100 | 103 | ||
104 | m_real_item_height = m_real_item_height == 0 ? 1 : m_real_item_height; | ||
105 | m_real_title_height = m_real_title_height == 0 ? 1 : m_real_title_height; | ||
106 | |||
101 | m_bullet_pixmap->scale(itemHeight(), itemHeight()); | 107 | m_bullet_pixmap->scale(itemHeight(), itemHeight()); |
102 | m_selected_pixmap->scale(itemHeight(), itemHeight()); | 108 | m_selected_pixmap->scale(itemHeight(), itemHeight()); |
103 | m_unselected_pixmap->scale(itemHeight(), itemHeight()); | 109 | m_unselected_pixmap->scale(itemHeight(), itemHeight()); |