mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Added tiff as image type supported, fixed a crash on Mac OS X Maverick when showing the GraphView
This commit is contained in:
@@ -160,7 +160,7 @@ GraphViewer::GraphViewer(QWidget * parent) :
|
||||
_workingDirectory = QDir::homePath();
|
||||
|
||||
this->scene()->clear();
|
||||
_root = (QGraphicsItem *)this->scene()->addEllipse(QRectF(0,0,0,0));
|
||||
_root = (QGraphicsItem *)this->scene()->addEllipse(QRectF(-0.0001,-0.0001,0.0001,0.0001));
|
||||
|
||||
// add referential
|
||||
QGraphicsLineItem * item = this->scene()->addLine(0,0,0,-1, QPen(QBrush(Qt::red), _linkWidth));
|
||||
|
||||
@@ -1747,7 +1747,7 @@ void PreferencesDialog::selectSourceImage(Src src)
|
||||
if(!path.isEmpty() && dir.exists())
|
||||
{
|
||||
QStringList filters;
|
||||
filters << "*.jpg" << "*.ppm" << "*.bmp" << "*.png" << "*.pnm";
|
||||
filters << "*.jpg" << "*.ppm" << "*.bmp" << "*.png" << "*.pnm" << "*.tiff";
|
||||
dir.setNameFilters(filters);
|
||||
QFileInfoList files = dir.entryInfoList();
|
||||
if(!files.empty())
|
||||
|
||||
Reference in New Issue
Block a user