# HG changeset patch # User Sebastien Jodogne # Date 1791483608 -7200 # Node ID 8ec75d7efdeeb3146a62be9bad28be8e769f25f8 # Parent 6de9b26f78116436df176c53cfd64d584072a874 cont diff -r 6de9b26f7811 -r 8ec75d7efdee Applications/Samples/Common/SimpleViewerCore.cpp --- a/Applications/Samples/Common/SimpleViewerCore.cpp Thu Oct 08 20:13:01 2026 +0200 +++ b/Applications/Samples/Common/SimpleViewerCore.cpp Thu Oct 08 20:20:08 2026 +0200 @@ -263,7 +263,9 @@ if (core_->annotations_->GetActiveTool() == AnnotationsSceneLayer::Tool_Remove) { std::unique_ptr viewportLock(core_->viewport_->Lock()); - viewportLock->GetController().PushCommand(boost::make_shared(viewportLock->GetController(), tools[0])); + + boost::shared_ptr command(new DeleteMeasureCommand(viewportLock->GetController(), tools[0])); + viewportLock->GetController().PushCommand(command); return NULL; } else