summaryrefslogtreecommitdiffstats
path: root/src/libcola/cola.cpp
diff options
context:
space:
mode:
authorJiHO <jiho-sf@users.sourceforge.net>2007-05-01 21:41:07 +0000
committerjiho-sf <jiho-sf@users.sourceforge.net>2007-05-01 21:41:07 +0000
commitaf13cb3f31577d3f54ff3f716c1a79ce8e2a8f1e (patch)
treea73bc3165e580c1f155e8590dbc6255c598d8b21 /src/libcola/cola.cpp
parent- committed patch 1710671 to osx-build.sh from John Faith which allows prior ... (diff)
downloadinkscape-af13cb3f31577d3f54ff3f716c1a79ce8e2a8f1e.tar.gz
inkscape-af13cb3f31577d3f54ff3f716c1a79ce8e2a8f1e.zip
committed patch 1710682 by jfaith
- in src/libcola/cola.cpp, isnan is used and not the cross-platform definition isNaN defined in isnan.h => replaced isnan by isNaN and included isnan.h - add math.h include in src/libcola/gradient_projection.cpp This was necessary because libcola does not compile for OS X 10.3.9 (bzr r2973)
Diffstat (limited to 'src/libcola/cola.cpp')
-rw-r--r--src/libcola/cola.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcola/cola.cpp b/src/libcola/cola.cpp
index 74cab50da..afad49eb2 100644
--- a/src/libcola/cola.cpp
+++ b/src/libcola/cola.cpp
@@ -2,6 +2,7 @@
#include "conjugate_gradient.h"
#include "straightener.h"
#include "shortest_paths.h"
+#include "isnan.h"
namespace cola {
@@ -131,7 +132,7 @@ void ConstrainedMajorizationLayout::majlayout(
}
b[i] += degree * coords[i];
}
- assert(!isnan(b[i]));
+ assert(!isNaN(b[i]));
}
if(constrainedLayout) {
setupDummyVars();