svx/source/svdraw/svdotxtr.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 9da32329f05a862635861adb19f9b0f331912c5b
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Nov 27 12:45:55 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Nov 27 14:10:25 2024 +0100

    PVS: V560 A part of conditional expression is always true: bRotate90
    
    Since
    commit fd069bee7e57ad529c3c0974559fd2d84ec3151a
    Author: Jens-Heiner Rechtien <h...@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 <xiscofa...@libreoffice.org>

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;

Reply via email to