diff --git a/src/gui/components/cc_frm_picture.cpp b/src/gui/components/cc_frm_picture.cpp index 0b0d6b899..ba7c951ca 100644 --- a/src/gui/components/cc_frm_picture.cpp +++ b/src/gui/components/cc_frm_picture.cpp @@ -43,7 +43,8 @@ void CComponentsPicture::setPicture(const std::string &name, const int &w, const void CComponentsPicture::setPicture(const char *name, const int &w, const int &h) { - setPicture(name, w, h); + std::string sName(name); + setPicture(sName, w, h); } std::string CComponentsPicture::getPictureName()