From ac7e3a0d4c9d85bbc5e75e7ad98fd1bbe136dbef Mon Sep 17 00:00:00 2001 From: bulia byak Date: Thu, 28 Sep 2006 05:28:43 +0000 Subject: factor out creation of livarot_path, and make it on-demand so that update_repr does not need to do it after screen update (potentially fixing a crash) (bzr r1721) --- src/node-context.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/node-context.cpp') diff --git a/src/node-context.cpp b/src/node-context.cpp index 3142e5b0e..6ad2254ce 100644 --- a/src/node-context.cpp +++ b/src/node-context.cpp @@ -378,6 +378,7 @@ sp_node_context_is_over_stroke (SPNodeContext *nc, SPItem *item, NR::Point event nc->curvepoint_doc *= sp_item_dt2i_affine(item); nc->curvepoint_doc *= sp_item_i2doc_affine(item); + sp_nodepath_ensure_livarot_path(nc->nodepath); NR::Maybe position = get_nearest_position_on_Path(nc->nodepath->livarot_path, nc->curvepoint_doc); NR::Point nearest = get_point_on_Path(nc->nodepath->livarot_path, position.assume().piece, position.assume().t); NR::Point delta = nearest - nc->curvepoint_doc; -- cgit v1.2.3