summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/textline.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/outdev/textline.cxx')
-rw-r--r--vcl/source/outdev/textline.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx
index 2034a54beb8a..de65574e1ac9 100644
--- a/vcl/source/outdev/textline.cxx
+++ b/vcl/source/outdev/textline.cxx
@@ -41,13 +41,9 @@ bool OutputDevice::ImplIsUnderlineAbove( const vcl::Font& rFont )
if ( !rFont.IsVertical() )
return false;
- if( (LANGUAGE_JAPANESE == rFont.GetLanguage()) ||
- (LANGUAGE_JAPANESE == rFont.GetCJKContextLanguage()) )
- {
- // the underline is right for Japanese only
- return true;
- }
- return false;
+ // the underline is right for Japanese only
+ return (LANGUAGE_JAPANESE == rFont.GetLanguage()) ||
+ (LANGUAGE_JAPANESE == rFont.GetCJKContextLanguage());
}
void OutputDevice::ImplInitTextLineSize()