changeset 1335:35469f75faa2

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 31 Mar 2020 15:47:29 +0200
parents a72c2c9af49a
children 379c00958553 4431ffdcc2a4
files Applications/Samples/SingleFrameEditorApplication.h Framework/Radiography/RadiographyMaskLayer.cpp
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Samples/SingleFrameEditorApplication.h	Mon Mar 30 09:51:01 2020 +0200
+++ b/Applications/Samples/SingleFrameEditorApplication.h	Tue Mar 31 15:47:29 2020 +0200
@@ -348,7 +348,7 @@
           {
             widget.GetScene().ExportDicom(context_->GetOrthancApiClient(),
                                           tags, std::string(), 0.1, 0.1, widget.IsInverted(),
-                                          widget.GetInterpolation(), EXPORT_USING_PAM);
+                                          false /* autoCrop */, widget.GetInterpolation(), EXPORT_USING_PAM);
           }
 
           break;
--- a/Framework/Radiography/RadiographyMaskLayer.cpp	Mon Mar 30 09:51:01 2020 +0200
+++ b/Framework/Radiography/RadiographyMaskLayer.cpp	Tue Mar 31 15:47:29 2020 +0200
@@ -85,7 +85,8 @@
     { // get the extent of the in-mask area
       Extent2D sceneExtent;
 
-      for (std::vector<Orthanc::ImageProcessing::ImagePoint>::const_iterator& corner = corners_.begin(); corner != corners_.end(); corner++)
+      for (std::vector<Orthanc::ImageProcessing::ImagePoint>::const_iterator
+             corner = corners_.begin(); corner != corners_.end(); ++corner)
       {
         double x = static_cast<double>(corner->GetX());
         double y = static_cast<double>(corner->GetY());