From 9da32329f05a862635861adb19f9b0f331912c5b Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 27 Nov 2024 12:45:55 +0100 Subject: PVS: V560 A part of conditional expression is always true: bRotate90 Since commit fd069bee7e57ad529c3c0974559fd2d84ec3151a Author: Jens-Heiner Rechtien 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 --- svx/source/svdraw/svdotxtr.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'svx/source') 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; -- cgit