diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-09 10:05:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-09 10:06:57 +0200 |
commit | a622aaf28fbf01a4de44c9e5c2c85b46bf63697b (patch) | |
tree | b942b68af75b6deed7d81c92847e0ec66fb1f865 /editeng | |
parent | 78b124143a3c2bd82984c1c06aa3265c211cef13 (diff) |
clang-analyzer-deadcode.DeadStores
...uselessly introduced with 94cac4c58d234fa7f75a115351b6d4dc02edab69 "changed
to new clipboard interface"
Change-Id: I4e446c7e524f1c80fe82d699d8c16e5cfa59932c
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editeng.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 910b4872c844..6da42720332e 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -270,13 +270,9 @@ void EditEngine::Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const P if ( bClip ) { // Clip only if necessary... - if ( !rStartDocPos.X() && !rStartDocPos.Y() && - ( rOutRect.GetHeight() >= (long)GetTextHeight() ) && - ( rOutRect.GetWidth() >= (long)CalcTextWidth() ) ) - { - bClip = false; - } - else + if ( rStartDocPos.X() || rStartDocPos.Y() || + ( rOutRect.GetHeight() < (long)GetTextHeight() ) || + ( rOutRect.GetWidth() < (long)CalcTextWidth() ) ) { // Some printer drivers cause problems if characters graze the // ClipRegion, therefore rather add a pixel more ... |