cc_item_picture: use image name as default item name

Origin commit data
------------------
Commit: 2f9e566925
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-01-18 (Sat, 18 Jan 2020)
This commit is contained in:
2020-01-18 00:10:20 +01:00
committed by vanhofen
parent 4c2dd65648
commit 4548798161

View File

@@ -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;