From: David Sarrut Date: Fri, 3 Feb 2012 06:57:12 +0000 (+0100) Subject: Prevent to reload if contours from dicom-rt-struct X-Git-Tag: v1.4.0~229^2~3 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=004bcd39f231a113951c678008140722b0b28152;p=clitk.git Prevent to reload if contours from dicom-rt-struct --- diff --git a/vv/vvToolROIManager.cxx b/vv/vvToolROIManager.cxx index d0e74c1..072d363 100644 --- a/vv/vvToolROIManager.cxx +++ b/vv/vvToolROIManager.cxx @@ -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();