From 268e335441e7d8fbaad25247ff8fb67d802f95bb 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 ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/dc6f7c648979f259ace0421ffa4659fe1e97fd86 Author: Hendi Date: 2023-01-23 (Mon, 23 Jan 2023) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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()