From 3ff08447569e42b40690aa6c18427bd24d58d447 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Thu, 19 Jul 2012 08:18:36 +0000 Subject: [PATCH] Removed some old code causing undefined behavior. There were leftovers from previous menu version, where icon will be set for certain MenuItem. However, some of those items are removed causing values to be set outside array's bounds. Yuck! --- ede-desktop/ede-desktop.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/ede-desktop/ede-desktop.cpp b/ede-desktop/ede-desktop.cpp index 31c1f5f..44c48ef 100644 --- a/ede-desktop/ede-desktop.cpp +++ b/ede-desktop/ede-desktop.cpp @@ -241,9 +241,6 @@ void Desktop::init_internals(void) { dmenu = new edelib::MenuButton(0, 0, 500, 0); dmenu->menu(desktop_menu); desktop_menu[1].image(edelib::IconLoader::get("folder", edelib::ICON_SIZE_TINY)); - desktop_menu[6].image(edelib::IconLoader::get("edit-copy", edelib::ICON_SIZE_TINY)); - desktop_menu[7].image(edelib::IconLoader::get("edit-paste", edelib::ICON_SIZE_TINY)); - wallpaper = new Wallpaper(0, 0, w(), h()); end();