summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2018-03-31 18:46:38 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2018-04-08 11:05:16 +0200
commit3a30799e377004f77ddcf5c1d6b62ca3e62c0905 (patch)
tree8cf2970af6ead558f2f2438961228991418d28f5 /cui/source
parentd2c8766a5e827e53f8f34893ff3d82a0df252f30 (diff)
Show preview correctly for relative size
Change-Id: I847e72b3808e1c692aa70e1c1a00917ddef9cbb9 Reviewed-on: https://gerrit.libreoffice.org/52367 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/tabpages/tpbitmap.cxx3
1 files changed, 1 insertions, 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() );