ImageView: colormap not updated if depth cv image is not set

This commit is contained in:
matlabbe
2018-08-17 15:30:13 -04:00
parent 3ce6de573d
commit 0c790005b2
+1
View File
@@ -718,6 +718,7 @@ void ImageView::contextMenuEvent(QContextMenuEvent * e)
}
else if(action == _colorMapBlackToWhite || action == _colorMapWhiteToBlack || action == _colorMapRedToBlue || action == _colorMapBlueToRed)
{
if(!_imageDepthCv.empty())
this->setImageDepth(_imageDepthCv);
Q_EMIT configChanged();
}