summaryrefslogtreecommitdiffstats
path: root/src/libvpsc/csolve_VPSC.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-09-09 19:42:05 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-09-09 19:42:05 +0000
commit9f52a01c5a908dcacbfdbaa218400b43b036ffe8 (patch)
tree533b875b1a254930bcc6be2e41cb7ce52e4689e9 /src/libvpsc/csolve_VPSC.cpp
parentstatic code checking (fixes Bug #614227 ) (diff)
downloadinkscape-9f52a01c5a908dcacbfdbaa218400b43b036ffe8.tar.gz
inkscape-9f52a01c5a908dcacbfdbaa218400b43b036ffe8.zip
better fix
(bzr r11659)
Diffstat (limited to 'src/libvpsc/csolve_VPSC.cpp')
-rw-r--r--src/libvpsc/csolve_VPSC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libvpsc/csolve_VPSC.cpp b/src/libvpsc/csolve_VPSC.cpp
index 4be73a19e..60e88a50b 100644
--- a/src/libvpsc/csolve_VPSC.cpp
+++ b/src/libvpsc/csolve_VPSC.cpp
@@ -8,6 +8,7 @@
*
* Released under GNU LGPL. Read the file 'COPYING' for more information.
*/
+#include <glib.h>
#include <iostream>
#include <cassert>
#include <cstdlib>
@@ -43,7 +44,7 @@ int genXConstraints(int n, boxf* bb, Variable** vs, Constraint*** cs,int transit
return m;
}
int genYConstraints(int n, boxf* bb, Variable** vs, Constraint*** cs) {
- assert(n > 0);
+ g_assert(n > 0);
Rectangle* rs[n];
for(int i=0;i<n;i++) {
rs[i]=new Rectangle(bb[i].LL.x,bb[i].UR.x,bb[i].LL.y,bb[i].UR.y);