From 09a70b7d44aa26a814210a5af09b5fca6f2fc985 Mon Sep 17 00:00:00 2001 From: Hendi Date: Mon, 23 Jan 2023 23:30:10 +0100 Subject: [PATCH] Fix infinite recursion in CComponentsPicture::setPicture Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/dc6f7c648979f259ace0421ffa4659fe1e97fd86 Author: Hendi Date: 2023-01-23 (Mon, 23 Jan 2023) --- src/gui/components/cc_frm_picture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()