summaryrefslogtreecommitdiffstats
path: root/src/display
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-08-17 07:39:43 +0000
committertavmjong-free <tavmjong@free.fr>2016-08-17 07:39:43 +0000
commit2f53e4dbb4620edcabaffc964c55cb71090912f8 (patch)
tree5c7119a28798a5d6b500ad092b92bf10720f80b1 /src/display
parentAdd std::nothrow so tests of memory allocation work as expected. (diff)
downloadinkscape-2f53e4dbb4620edcabaffc964c55cb71090912f8.tar.gz
inkscape-2f53e4dbb4620edcabaffc964c55cb71090912f8.zip
Use M_PI, M_PI_2. We use these constants everywhere so if they are not defined we are already in trouble.
No need to define them ourselves (except maybe in shared libraries). (bzr r15063)
Diffstat (limited to 'src/display')
-rw-r--r--src/display/guideline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/guideline.cpp b/src/display/guideline.cpp
index 126fcf87c..f66b65e1a 100644
--- a/src/display/guideline.cpp
+++ b/src/display/guideline.cpp
@@ -48,7 +48,7 @@ static void sp_guideline_init(SPGuideLine *gl)
gl->locked = false;
gl->normal_to_line = Geom::Point(0,1);
- gl->angle = 3.14159265358979323846/2;
+ gl->angle = M_PI_2;
gl->point_on_line = Geom::Point(0,0);
gl->sensitive = 0;