From 7dd441474f7f37539de38e0ade14ddf1a1ae4b60 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Fri, 5 Nov 2021 11:25:19 +0100 Subject: [PATCH] always scale svg's Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/ee10ecffe67e7106a30b694d273162d3e7aa5fec Author: TangoCash Date: 2021-11-05 (Fri, 05 Nov 2021) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_item_picture.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/components/cc_item_picture.cpp b/src/gui/components/cc_item_picture.cpp index 14b368617..204e30b41 100644 --- a/src/gui/components/cc_item_picture.cpp +++ b/src/gui/components/cc_item_picture.cpp @@ -184,6 +184,10 @@ void CComponentsPicture::initCCItem() if (pos == string::npos) do_scale = false; + // always scale svg's + if (pic_name.find(".svg") == (pic_name.length() - 4)) + do_scale = true; + //initial internal size if (!do_scale){ //use image/icon size as object dimension values