Code

use correct isNaN
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 11 Apr 2007 04:24:53 +0000 (04:24 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 11 Apr 2007 04:24:53 +0000 (04:24 +0000)
src/dyna-draw-context.cpp

index d1966d248ba6c3e6af642461b6904c201483ca24..56890b7677dc38e3b05254edf86d9ead21f53284 100644 (file)
@@ -963,7 +963,7 @@ sp_dyna_draw_context_root_handler(SPEventContext *event_context,
                                 // so _gradually_ let go attraction to prevent jerks
                                 target = (dc->hatch_spacing * speed + hatch_dist * (SPEED_NORMAL - speed))/SPEED_NORMAL;                            
                             }
-                            if (!isnan(dot) && dot < -0.5) {// flip
+                            if (!isNaN(dot) && dot < -0.5) {// flip
                                 target = -target;
                                 //g_print ("FLIP\n");
                             }