1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/deskutils/vym/files/patch-linkablemapobj.cpp
Anton Berezin 45b4b2156d Add deskutils/vym 1.5.0.
VYM (View Your Mind) is a tool to generate and manipulate "mind maps".

PR:		72786
Submitted by:	Gerrit Beine <tux@pinguru.net>
2004-10-22 15:20:32 +00:00

34 lines
627 B
C++

--- linkablemapobj.cpp.orig Fri Sep 24 16:50:15 2004
+++ linkablemapobj.cpp Thu Oct 21 17:22:44 2004
@@ -6,6 +6,12 @@
#include "version.h"
+#if !defined(HAVE_LRINTF)
+static inline long int lrint(double x)
+{
+ return (long)(rint(x));
+}
+#endif
/////////////////////////////////////////////////////////////////
// LinkableMapObj
@@ -400,7 +406,7 @@
lrint(p1y) );
double a; // angle
- if (abs(vx)<0.000001)
+ if (fabs(vx)<0.000001)
a=M_PI_2;
else
a=atan( vy / vx );
@@ -611,7 +617,7 @@
double pny;
double m;
- if (abs(vx) <0.0001)
+ if (fabs(vx) <0.0001)
m=0;
else
m=(vy / (vx*vx));