[Libreoffice-commits] core.git: svx/source

Caolán McNamara caolanm at redhat.com
Sat Oct 8 15:15:46 UTC 2016


 svx/source/tbxctrls/tbcontrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7520e8c0221ec7aa06125dcfafae48c9e37999ae
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Oct 8 16:11:49 2016 +0100

    60x86 is the logical size not pixel size
    
    Change-Id: I84ad47f33dd142296a0f57cf8002861807c3b282

diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 1c50946..6574022 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -344,6 +344,7 @@ SvxStyleBox_Impl::SvxStyleBox_Impl(vcl::Window* pParent,
     , eStyleFamily( eFamily )
     , nCurSel(0)
     , bRelease( true )
+    , aLogicalSize(60, 86)
     , bVisible(false)
     , m_xDispatchProvider( rDispatchProvider )
     , m_xFrame(_xFrame)
@@ -357,7 +358,6 @@ SvxStyleBox_Impl::SvxStyleBox_Impl(vcl::Window* pParent,
     m_pMenu->SetSelectHdl( LINK( this, SvxStyleBox_Impl, MenuSelectHdl ) );
     for(VclPtr<MenuButton> & rpButton : m_pButtons)
         rpButton = nullptr;
-    aLogicalSize = PixelToLogic(Size(60, 86), MapUnit::MapAppFont);
     SetOptimalSize();
     EnableAutocomplete( true );
     EnableUserDraw( true );


More information about the Libreoffice-commits mailing list