Because I cannot make it crash, I need your help. Can you apply this
patch, and see what messages you get on the terminal? You should be
looking for something like "point1[0] not finite".
+ for (gint i = dc->npoints-1; i >= 0; i--) {
+ if (!dc->point1[i].isFinite()) {
+ g_message("point1[%d] not finite",i);
+ }
+ if (!dc->point2[i].isFinite()) {
+ g_message("point2[%d] not finite",i);
+ }
+ }
+
dc->currentcurve->moveto(dc->point2[dc->npoints-1]);
for (gint i = dc->npoints-2; i >= 0; i--) { dc->currentcurve->lineto(dc->point2[i]);
Because I cannot make it crash, I need your help. Can you apply this
patch, and see what messages you get on the terminal? You should be
looking for something like "point1[0] not finite".
=== modified file src/dyna- draw-context. cpp draw-context. cpp 2011-06-23 16:38:51 +0000 draw-context. cpp 2011-08-18 20:01:00 +0000 >currentcurve- >reset( );
--- src/dyna-
+++ src/dyna-
@@ -1250,6 +1250,15 @@
{
dc-
+ for (gint i = dc->npoints-1; i >= 0; i--) { i].isFinite( )) { "point1[ %d] not finite",i); i].isFinite( )) { "point2[ %d] not finite",i); >currentcurve- >moveto( dc->point2[ dc->npoints- 1]);
dc-> currentcurve- >lineto( dc->point2[ i]);
+ if (!dc->point1[
+ g_message(
+ }
+ if (!dc->point2[
+ g_message(
+ }
+ }
+
dc-
for (gint i = dc->npoints-2; i >= 0; i--) {
Thanks,
Johan