Code

make offset independent of zoom
authorbuliabyak <buliabyak@users.sourceforge.net>
Thu, 8 Mar 2007 07:30:52 +0000 (07:30 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Thu, 8 Mar 2007 07:30:52 +0000 (07:30 +0000)
src/flood-context.cpp

index cd2f1a5ec46f3e9286f236b17309f3846215d0c1..7724355aa4143db0373efc59a2151b701798568b 100644 (file)
@@ -325,7 +325,7 @@ static void do_trace(GdkPixbuf *px, SPDesktop *desktop, NR::Matrix transform) {
         Shape *expanded_path_shape = new Shape();
         
         expanded_path_shape->ConvertToShape(path_shape, fill_nonZero);
-        path_shape->MakeOffset(expanded_path_shape, offset, join_round, 4);
+        path_shape->MakeOffset(expanded_path_shape, offset * desktop->current_zoom(), join_round, 4);
         expanded_path_shape->ConvertToShape(path_shape, fill_positive);
 
         Path *expanded_path = new Path();