Code

fix crash
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 2 Feb 2009 15:48:12 +0000 (15:48 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 2 Feb 2009 15:48:12 +0000 (15:48 +0000)
src/trace/trace.cpp

index c8937bdd82c2e8adbbd2d110facae9036ae05afc..e2bd0e9f583581cc9dba0a9fc01c36f06644789a 100644 (file)
@@ -283,7 +283,8 @@ Tracer::sioxProcessImage(SPImage *img,
             //Get absolute X,Y position
             double xpos = ((double)aImg->bbox.x0) + iwscale * (double)col;
             Geom::Point point(xpos, ypos);
-            point *= *aImg->transform;
+            if (aImg->transform)
+                point *= *aImg->transform;
             //point *= imgMat;
             //point = desktop->doc2dt(point);
             //g_message("x:%f    y:%f\n", point[0], point[1]);