]> Creatis software - clitk.git/commitdiff
Prevent to reload if contours from dicom-rt-struct
authorDavid Sarrut <david.sarrut@gmail.com>
Fri, 3 Feb 2012 06:57:12 +0000 (07:57 +0100)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Tue, 4 Jun 2013 08:21:08 +0000 (10:21 +0200)
vv/vvToolROIManager.cxx

index d0e74c1c877233adc2901b7b2c4e25270a81ac96..072d3634b23a1c26129ba466fc39c0fcae88224b 100644 (file)
@@ -737,6 +737,9 @@ void vvToolROIManager::ChangeDepth(int n) {
 
 //------------------------------------------------------------------------------
 void vvToolROIManager::ReloadCurrentROI() {
+  if (mCurrentROI->GetImage()) {
+    return; // do nothing (contour from rt struct do not reload)
+  }
 
   // Remove all contours/overlay first
   bool visible = mCurrentROIActor->IsVisible();