summaryrefslogtreecommitdiff
path: root/starmath/source/node.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r--starmath/source/node.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 59eee48943f2..80bba2cf1e54 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -1217,7 +1217,7 @@ bool IsPointInLine(const Point &rPoint1,
OSL_ENSURE(rHeading2 != Point(), "Sm : 0 vector");
bool bRes = false;
- const double eps = 5.0 * DBL_EPSILON;
+ static const double eps = 5.0 * DBL_EPSILON;
double fLambda;
if (labs(rHeading2.X()) > labs(rHeading2.Y()))
@@ -1243,7 +1243,7 @@ sal_uInt16 GetLineIntersectionPoint(Point &rResult,
OSL_ENSURE(rHeading2 != Point(), "Sm : 0 vector");
sal_uInt16 nRes = 1;
- const double eps = 5.0 * DBL_EPSILON;
+ static const double eps = 5.0 * DBL_EPSILON;
// are the direction vectors linearly dependent?
double fDet = Det(rHeading1, rHeading2);