From b7c2764145be2c3fc50397f241dbdb0c53f9befd Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 28 Oct 2016 23:55:53 +0200 Subject: convert usages of DPIScalingFactor from int to float MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I049b3d2cde4dcb8c8c0690d75a015a43cb71b0c0 Reviewed-on: https://gerrit.libreoffice.org/30381 Reviewed-by: Tomaž Vajngerl Tested-by: Tomaž Vajngerl --- svtools/source/control/tabbar.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'svtools') diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 446bb6a47942..47cecc3112ea 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -330,9 +330,8 @@ ImplTabSizer::ImplTabSizer( TabBar* pParent, WinBits nWinStyle ) : Window( pParent, nWinStyle & WB_3DLOOK ) , mnStartWidth(0) { - sal_Int32 nScaleFactor = GetDPIScaleFactor(); SetPointer(Pointer(PointerStyle::HSizeBar)); - SetSizePixel(Size(7 * nScaleFactor, 0)); + SetSizePixel(Size(7 * GetDPIScaleFactor(), 0)); } void ImplTabSizer::ImplTrack( const Point& rScreenPos ) -- cgit