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 | |
parent | 23be956fbd196bf30623dd588e7326f7231d4517 (diff) | |
download | skin-nopacity-20ece7a6bb2da02a091d08c9c9d60d32d9d451fb.tar.gz skin-nopacity-20ece7a6bb2da02a091d08c9c9d60d32d9d451fb.tar.bz2 |
Fixed a bug with menuselection patch
-rw-r--r-- | displaymenu.c | 8 | ||||
-rw-r--r-- | imageloader.c | 1 |
2 files changed, 5 insertions, 4 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()); } diff --git a/imageloader.c b/imageloader.c index deaa782..bfc4ce5 100644 --- a/imageloader.c +++ b/imageloader.c @@ -1,5 +1,4 @@ #include "imageloader.h" -#include "imageloader.h" #include <math.h> #include <string> #include <dirent.h> |