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

View File

@@ -718,7 +718,8 @@ void ImageView::contextMenuEvent(QContextMenuEvent * e)
}
else if(action == _colorMapBlackToWhite || action == _colorMapWhiteToBlack || action == _colorMapRedToBlue || action == _colorMapBlueToRed)
{
this->setImageDepth(_imageDepthCv);
if(!_imageDepthCv.empty())
this->setImageDepth(_imageDepthCv);
Q_EMIT configChanged();
}
else if(action == _setAlpha)