Code

Print distance info in console for LPERuler until new CanvasText item works
authorcilix42 <cilix42@users.sourceforge.net>
Tue, 15 Jul 2008 12:41:27 +0000 (12:41 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Tue, 15 Jul 2008 12:41:27 +0000 (12:41 +0000)
src/live_effects/lpe-ruler.cpp

index 5a3f8c28598613278b5d050e0e8fb7646d5f3b5f..85db5c1c7c77f3693f0b15f95c76292d5090695e 100644 (file)
@@ -51,6 +51,8 @@ LPERuler::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_i
     Point n(-rot90(dir) * mark_length);
     double length = L2(B - A);
 
+    g_print ("Distance: %8.2f\n", length);
+
     Point C, D;
     for (int i = 0; i < length; i+=mark_distance) {
         C = A + dir * i;