Fixed GUI crash when using rectified RGB only (with odometry). Fixed empty local map when loading a fixed local map for OdometryF2M.

This commit is contained in:
matlabbe
2016-11-25 19:52:34 -05:00
parent da1cac1e55
commit 693f623e5e
6 changed files with 23 additions and 66 deletions

View File

@@ -775,6 +775,8 @@ void ImageView::setImageDepth(const QImage & imageDepth)
{
_imageDepth = QPixmap::fromImage(imageDepth);
UASSERT(_imageDepth.width() && _imageDepth.height());
if( _image.width() > 0 &&
_image.width() > _imageDepth.width() &&
_image.height() > _imageDepth.height() &&