Mercurial > hg > orthanc-stone
changeset 2373:8ec75d7efdee refactoring
cont
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Thu, 08 Oct 2026 20:20:08 +0200 |
| parents | 6de9b26f7811 |
| children | 07e20eaa0e90 |
| files | Applications/Samples/Common/SimpleViewerCore.cpp |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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<IViewport::ILock> viewportLock(core_->viewport_->Lock()); - viewportLock->GetController().PushCommand(boost::make_shared<DeleteMeasureCommand>(viewportLock->GetController(), tools[0])); + + boost::shared_ptr<MeasureCommand> command(new DeleteMeasureCommand(viewportLock->GetController(), tools[0])); + viewportLock->GetController().PushCommand(command); return NULL; } else
