diff options
author | louis <louis.braun@gmx.de> | 2013-03-03 11:59:21 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-03-03 11:59:21 +0100 |
commit | 20ece7a6bb2da02a091d08c9c9d60d32d9d451fb (patch) | |
tree | c11181233c8482f6d8545949a705617488c18cf2 /displaymenu.c | |
parent | 23be956fbd196bf30623dd588e7326f7231d4517 (diff) | |
download | skin-nopacity-20ece7a6bb2da02a091d08c9c9d60d32d9d451fb.tar.gz skin-nopacity-20ece7a6bb2da02a091d08c9c9d60d32d9d451fb.tar.bz2 |
Fixed a bug with menuselection patch
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/displaymenu.c b/displaymenu.c index c184b58..4b8f274 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -572,9 +572,11 @@ void cNopacityDisplayMenu::SetItem(const char *Text, int Index, bool Current, bo } else { //redraw item when switching through menu cNopacityMenuItem *item = menuItems.Get(Index); - item->SetTabs(strItems, tabItems, MaxTabs); - item->SetCurrent(Current); - item->Render(); + if (item) { + item->SetTabs(strItems, tabItems, MaxTabs); + item->SetCurrent(Current); + item->Render(); + } } SetEditableWidth(menuView->GetEditableWidth()); } |