From 58fae0f715433a72d814584d97a1368f8a1b62d2 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Tue, 11 Mar 2014 15:43:48 -0500 Subject: remove osolete ifdef now that the ScaleDPI is forced to 1 on mac there is no need for these ifdef Change-Id: I0ca3bc301b63f5f4c7d1eb36f27bc9b6ab41af29 --- sw/source/core/uibase/utlui/content.cxx | 2 -- sw/source/core/uibase/utlui/viewlayoutctrl.cxx | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'sw') diff --git a/sw/source/core/uibase/utlui/content.cxx b/sw/source/core/uibase/utlui/content.cxx index 9ffcf86c15f9..2204074ce791 100644 --- a/sw/source/core/uibase/utlui/content.cxx +++ b/sw/source/core/uibase/utlui/content.cxx @@ -1563,7 +1563,6 @@ void SwContentTree::Display( bool bActive ) { aEntryImages = ImageList(SW_RES(IMG_NAVI_ENTRYBMP)); -#ifndef MACSOX if ( GetDPIScaleFactor() > 1 ) { for (short i = 0; i < aEntryImages.GetImageCount(); i++) @@ -1575,7 +1574,6 @@ void SwContentTree::Display( bool bActive ) aEntryImages.ReplaceImage(rImageName, Image(b)); } } -#endif bIsImageListInitialized = true; } // First read the selected entry to select it later again if necessary diff --git a/sw/source/core/uibase/utlui/viewlayoutctrl.cxx b/sw/source/core/uibase/utlui/viewlayoutctrl.cxx index 18a92123d1d0..798213d5471f 100644 --- a/sw/source/core/uibase/utlui/viewlayoutctrl.cxx +++ b/sw/source/core/uibase/utlui/viewlayoutctrl.cxx @@ -52,7 +52,6 @@ SwViewLayoutControl::SwViewLayoutControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, mpImpl->maImageBookMode = Image( SW_RES(IMG_VIEWLAYOUT_BOOKMODE) ); mpImpl->maImageBookMode_Active = Image( SW_RES(IMG_VIEWLAYOUT_BOOKMODE_ACTIVE) ); -#ifndef MACOSX if ( rStb.GetDPIScaleFactor() > 1) { Image arr[6] = {mpImpl->maImageSingleColumn, mpImpl->maImageSingleColumn_Active, @@ -76,7 +75,7 @@ SwViewLayoutControl::SwViewLayoutControl( sal_uInt16 _nSlotId, sal_uInt16 _nId, mpImpl->maImageBookMode = arr[4]; mpImpl->maImageBookMode_Active = arr[5]; } -#endif + } SwViewLayoutControl::~SwViewLayoutControl() -- cgit