summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-03 22:55:07 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-03 22:55:07 +0100
commit6744951cf9b911dc1ac516b06c0363b80de36c3f (patch)
treec4b91aebceecb2207694e7ec51ed915e466e7c52 /vcl
parent02b39996fa8447305900adad509250646c0a3b80 (diff)
loplugin:simplifybool
Change-Id: I7fdcc939154ca6804707039c3311728a0249dec7
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/outdev/font.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 6d641648eb03..9335b791d6f4 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 ;
}