From 45487981619529f99d8b88c7c2cafffc27af219c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 18 Jan 2020 00:10:20 +0100 Subject: [PATCH] cc_item_picture: use image name as default item name Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/2f9e56692537345a70ebea7393fb889df25948db Author: Thilo Graf Date: 2020-01-18 (Sat, 18 Jan 2020) --- src/gui/components/cc_item_picture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_picture.cpp b/src/gui/components/cc_item_picture.cpp index a612ca22e..02f03519c 100644 --- a/src/gui/components/cc_item_picture.cpp +++ b/src/gui/components/cc_item_picture.cpp @@ -70,7 +70,7 @@ void CComponentsPicture::init( const int &x_pos, const int &y_pos, const int &w, { //CComponents, CComponentsItem cc_item_type.id = CC_ITEMTYPE_PICTURE; - cc_item_type.name = "cc_image_box"; + cc_item_type.name = image_name.empty() ? "cc_image_box" : image_name; //CComponents x = x_old = x_pos;