From bc5242a69969de59511f9c1e6fd7b78138e05e78 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Fri, 3 Feb 2012 07:57:12 +0100 Subject: [PATCH] Set the contour to the same color than the overlay. Correct bug when the user cancel the color selection. --- vv/vvROIActor.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vv/vvROIActor.cxx b/vv/vvROIActor.cxx index e7f82f6..6e79456 100644 --- a/vv/vvROIActor.cxx +++ b/vv/vvROIActor.cxx @@ -166,10 +166,10 @@ void vvROIActor::Initialize(double depth, bool IsVisible) { mImageContour.push_back(vvImageContour::New()); mImageContour[i]->SetSlicer(mSlicerManager->GetSlicer(i)); mImageContour[i]->SetImage(mROI->GetImage()); - // Color of the contour is "complement" of roi color - mContourColor[0] = 1-mROI->GetDisplayColor()[0]; - mContourColor[1] = 1-mROI->GetDisplayColor()[1]; - mContourColor[2] = 1-mROI->GetDisplayColor()[2]; + // Color of the contour is same of roi color + mContourColor[0] = mROI->GetDisplayColor()[0]; + mContourColor[1] = mROI->GetDisplayColor()[1]; + mContourColor[2] = mROI->GetDisplayColor()[2]; mImageContour[i]->SetColor(mContourColor[0], mContourColor[1], mContourColor[2]); mImageContour[i]->SetLineWidth(mContourWidth); mImageContour[i]->SetPreserveMemoryModeEnabled(true); -- 2.47.1