From 3a30799e377004f77ddcf5c1d6b62ca3e62c0905 Mon Sep 17 00:00:00 2001 From: Katarina Behrens Date: Sat, 31 Mar 2018 18:46:38 +0200 Subject: Show preview correctly for relative size Change-Id: I847e72b3808e1c692aa70e1c1a00917ddef9cbb9 Reviewed-on: https://gerrit.libreoffice.org/52367 Tested-by: Jenkins Reviewed-by: Katarina Behrens --- cui/source/tabpages/tpbitmap.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cui/source/tabpages/tpbitmap.cxx b/cui/source/tabpages/tpbitmap.cxx index 3f9cab8712d1..1b9312715ac5 100644 --- a/cui/source/tabpages/tpbitmap.cxx +++ b/cui/source/tabpages/tpbitmap.cxx @@ -671,7 +671,6 @@ IMPL_LINK_NOARG( SvxBitmapTabPage, ModifyBitmapStyleHdl, ListBox&, void ) bool bIsTiled( eStylePos == TILED ); m_pSizeBox->Enable( !bIsStretched ); - m_pTsbScale->Enable( eStylePos == CUSTOM ); m_pPositionBox->Enable( !bIsStretched ); m_pPositionOffBox->Enable( bIsTiled ); m_pTileOffBox->Enable( bIsTiled ); @@ -687,7 +686,7 @@ IMPL_LINK_NOARG( SvxBitmapTabPage, ModifyBitmapStyleHdl, ListBox&, void ) case CUSTOM: case TILED: { - if(eStylePos == CUSTOM && m_pTsbScale->IsEnabled() && m_pTsbScale->GetState() == TRISTATE_TRUE) + if(m_pTsbScale->IsEnabled() && m_pTsbScale->GetState() == TRISTATE_TRUE) { aSetBitmapSize.setWidth( -m_pBitmapWidth->GetValue() ); aSetBitmapSize.setHeight( -m_pBitmapWidth->GetValue() ); -- cgit v1.2.3