Code

fix compile warning with C++ style cast
[inkscape.git] / src / live_effects / parameter / point.cpp
index ab9f3f98a335910ce1d74247f57447b3cc13767f..3d13ed12dfc93b639bdbbb6840192a3b6247c0e7 100644 (file)
@@ -135,7 +135,7 @@ PointParam::on_button_click()
         sp_knot_update_ctrl(knot);
 
         // move knot to the given point
-        sp_knot_set_position (knot, &NR::Point(*this), SP_KNOT_STATE_NORMAL);
+        sp_knot_set_position (knot, &NR::Point(*static_cast<Geom::Point*>(this)), SP_KNOT_STATE_NORMAL);
         sp_knot_show (knot);
 /*
         // connect knot's signals