diff options
-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> |