diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-09-28 05:28:43 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-09-28 05:28:43 +0000 |
| commit | ac7e3a0d4c9d85bbc5e75e7ad98fd1bbe136dbef (patch) | |
| tree | 37b94740c79e0f78b5e59e22381e131578f56ebc /src/node-context.cpp | |
| parent | fix bug in my previous commit: updating rotation centers was broken (diff) | |
| download | inkscape-ac7e3a0d4c9d85bbc5e75e7ad98fd1bbe136dbef.tar.gz inkscape-ac7e3a0d4c9d85bbc5e75e7ad98fd1bbe136dbef.zip | |
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)
Diffstat (limited to 'src/node-context.cpp')
| -rw-r--r-- | src/node-context.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<Path::cut_position> 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; |
