From 3bf389778798eb0dacb1c766f076e3cca9cc90e8 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Fri, 5 Nov 2021 11:25:19 +0100 Subject: [PATCH] always scale svg's --- 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