diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-12-02 11:42:02 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-12-02 11:42:02 +0000 |
| commit | a8673632fd967db5986ba4963969497d3fd922a4 (patch) | |
| tree | e45182a173be3cc336c94783cb772eb13da7f9fa /src/ui/tools/measure-tool.cpp | |
| parent | Add option to show also the original LPE path (diff) | |
| download | inkscape-a8673632fd967db5986ba4963969497d3fd922a4.tar.gz inkscape-a8673632fd967db5986ba4963969497d3fd922a4.zip | |
Clear meassure when dragging knots
Diffstat (limited to 'src/ui/tools/measure-tool.cpp')
| -rw-r--r-- | src/ui/tools/measure-tool.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/tools/measure-tool.cpp b/src/ui/tools/measure-tool.cpp index bd2964d94..7df4ccbc3 100644 --- a/src/ui/tools/measure-tool.cpp +++ b/src/ui/tools/measure-tool.cpp @@ -602,6 +602,12 @@ bool MeasureTool::root_handler(GdkEvent* event) showInfoBox(motion_w, false); } } else { + SPDesktop *desktop = SP_ACTIVE_DESKTOP; + Inkscape::Util::Unit const * unit = desktop->getNamedView()->getDisplayUnit(); + for (size_t idx = 0; idx < measure_item.size(); ++idx) { + sp_canvas_item_destroy(measure_item[idx]); + } + measure_item.clear(); ret = TRUE; Inkscape::Preferences *prefs = Inkscape::Preferences::get(); tolerance = prefs->getIntLimited("/options/dragtolerance/value", 0, 0, 100); |
