diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-11-27 12:45:55 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-11-27 14:10:25 +0100 |
commit | 9da32329f05a862635861adb19f9b0f331912c5b (patch) | |
tree | 5f33708035105f02a0e2052efe7bcf2adfab3006 /svx/source | |
parent | d9920fe89aad76898d8a9c6a70c77a052861a328 (diff) |
PVS: V560 A part of conditional expression is always true: bRotate90
Since
commit fd069bee7e57ad529c3c0974559fd2d84ec3151a
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date: Mon Sep 18 16:07:07 2000 +0000
initial import
Change-Id: Ie2aeabafb1ff2a73b1c8cb90ee1a4d03a7482ab5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177410
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdotxtr.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdotxtr.cxx b/svx/source/svdraw/svdotxtr.cxx index f9c3716b9d60..0380a691cbe0 100644 --- a/svx/source/svdraw/svdotxtr.cxx +++ b/svx/source/svdraw/svdotxtr.cxx @@ -262,9 +262,10 @@ void SdrTextObj::NbcMirror(const Point& rRef1, const Point& rRef2) tools::Rectangle aRectangle = svx::polygonToRectangle(aPol, maGeo); setRectangle(aRectangle); - if (bRotate90) { + if (bRotate90) + { bool bRota90=maGeo.m_nRotationAngle.get() % 9000 ==0; - if (bRotate90 && !bRota90) { // there's seems to be a rounding error occurring: correct it + if (!bRota90) { // there's seems to be a rounding error occurring: correct it Degree100 a=NormAngle36000(maGeo.m_nRotationAngle); if (a<4500_deg100) a=0_deg100; else if (a<13500_deg100) a=9000_deg100; |