Skip to content

Commit

Permalink
Color context menu in Data Manager changes selected colour of binary …
Browse files Browse the repository at this point in the history
…images
  • Loading branch information
espakm committed Jan 13, 2015
1 parent 98e7c8f commit da105b8
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -626,6 +626,10 @@ void QmitkDataManagerView::ColorChanged()
return;
m_ColorButton->setAutoFillBackground(true);
node->SetProperty("color",mitk::ColorProperty::New(qcolor.red()/255.0,qcolor.green()/255.0,qcolor.blue()/255.0));
if (node->GetProperty("binaryimage.selectedcolor"))
{
node->SetProperty("binaryimage.selectedcolor",mitk::ColorProperty::New(qcolor.red()/255.0,qcolor.green()/255.0,qcolor.blue()/255.0));
}
mitk::RenderingManager::GetInstance()->RequestUpdateAll();
}
}
Expand Down

0 comments on commit da105b8

Please sign in to comment.