summaryrefslogtreecommitdiff
path: root/sw/source/core/doc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-11-18 23:42:32 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-19 10:00:02 +0100
commit1cc6fca4927b9684b1f5acedee7b60c0c7518e25 (patch)
treed3ec824cbf0bd00b7a89f004509fbcea5dccf70c /sw/source/core/doc
parent37429f2690a96491ad0e4fa2a04f2fa88a66da87 (diff)
Drop F_2PI
Change-Id: Ie98606607b2ce262e4eed76bb8cd86fbfe846f76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125506 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/core/doc')
-rw-r--r--sw/source/core/doc/notxtfrm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx
index 8886ce464ca3..958033d0d6a3 100644
--- a/sw/source/core/doc/notxtfrm.cxx
+++ b/sw/source/core/doc/notxtfrm.cxx
@@ -641,7 +641,7 @@ double SwNoTextFrame::getLocalFrameRotation() const
const SwRotationGrf& rSwRotationGrf(rSwAttrSet.GetRotationGrf());
const double fRotate = -toRadians(rSwRotationGrf.GetValue());
- return basegfx::normalizeToRange(fRotate, F_2PI);
+ return basegfx::normalizeToRange(fRotate, 2 * M_PI);
}
}
@@ -1440,7 +1440,7 @@ bool SwNoTextFrame::IsTransparent() const
if(isTransformableSwFrame())
{
// we can be more specific - rotations of multiples of
- // 90 degrees will leave no gaps. Go from [0.0 .. F_2PI]
+ // 90 degrees will leave no gaps. Go from [0.0 .. 2PI]
// to [0 .. 360] and check modulo 90
const tools::Long nRot(static_cast<tools::Long>(basegfx::rad2deg(getLocalFrameRotation())));
const bool bMultipleOf90(0 == (nRot % 90));