[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - svx/source

Maxim Monastirsky momonasmon at gmail.com
Tue Feb 13 20:59:02 UTC 2018


 svx/source/tbxctrls/tbcontrl.cxx |    8 --------
 1 file changed, 8 deletions(-)

New commits:
commit 9cb3b0f5cbf7d35342ed2d5c5c1130f63ef050e3
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Fri Feb 9 11:22:41 2018 +0200

    tdf#107403 Don't scale frame icons twice
    
    It's already done by ImplImageTree, see loadImageFromStream
    function in ImplImageTree.cxx.
    
    Change-Id: I5aa7439876037fb0168f6c1da264af9697788ef0
    Reviewed-on: https://gerrit.libreoffice.org/49478
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Maxim Monastirsky <momonasmon at gmail.com>
    (cherry picked from commit 273d0ee7b7edb24c2c9e15e9f4337f71c175801a)
    Reviewed-on: https://gerrit.libreoffice.org/49549
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index efd6c4861f4e..997520fd5e32 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1967,14 +1967,6 @@ void SvxFrameWindow_Impl::InitImageList()
     aImgVec.emplace_back(RID_SVXBMP_FRAME10);
     aImgVec.emplace_back(RID_SVXBMP_FRAME11);
     aImgVec.emplace_back(RID_SVXBMP_FRAME12);
-
-    if (GetParent()->GetDPIScaleFactor() > 1)
-    {
-        for (size_t i = 0; i < aImgVec.size(); ++i)
-        {
-            aImgVec[i].Scale(GetParent()->GetDPIScaleFactor(), GetParent()->GetDPIScaleFactor());
-        }
-    }
 }
 
 static Color lcl_mediumColor( Color aMain, Color /*aDefault*/ )


More information about the Libreoffice-commits mailing list