From d5c0951d0baf640ebd0dc97f06740bcc48f510d5 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 25 Jan 2015 15:31:22 +0100 Subject: [PATCH] CComponentsInfoBox: remove unnecessary call for kill() partial revert of: CComponentsInfoBox: fix centering of image Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/592b0025d911889cb45190394517aa96ae823e86 Author: Thilo Graf Date: 2015-01-25 (Sun, 25 Jan 2015) Origin message was: ------------------ CComponentsInfoBox: remove unnecessary call for kill() partial revert of: CComponentsInfoBox: fix centering of image ------------------ This commit was generated by Migit --- src/gui/components/cc_item_infobox.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/components/cc_item_infobox.cpp b/src/gui/components/cc_item_infobox.cpp index 4385341be..0477cf1f3 100644 --- a/src/gui/components/cc_item_infobox.cpp +++ b/src/gui/components/cc_item_infobox.cpp @@ -96,11 +96,9 @@ void CComponentsInfoBox::paintPicture() { //ensure empty pic object if (pic){ - if (pic->isPicPainted()) - pic->kill(); delete pic; + pic = NULL; } - pic = NULL; //exit if no image definied if (pic_name.empty())