[Libreoffice-commits] core.git: vcl/source
Stephan Bergmann
sbergman at redhat.com
Tue Nov 3 13:55:36 PST 2015
vcl/source/outdev/font.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6744951cf9b911dc1ac516b06c0363b80de36c3f
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Nov 3 22:55:07 2015 +0100
loplugin:simplifybool
Change-Id: I7fdcc939154ca6804707039c3311728a0249dec7
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 6d64164..9335b79 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -1886,7 +1886,7 @@ void ImplFontMetricData::ImplInitTextLineSize( const OutputDevice* pDev )
const sal_uInt16 nB = aRect.Left();
// Use 18.75% as a threshold to define a centered fullwidth fullstop.
// In general, nB/nH < 5% for most Japanese fonts.
- bCentered = (nB > (((nH >> 1)+nH)>>3)) ? true : false;
+ bCentered = nB > (((nH >> 1)+nH)>>3);
}
mbFullstopCentered = bCentered ;
}
More information about the Libreoffice-commits
mailing list