Commit fec9f0479a494f01343c4be2117883e9e5d966ba
1 parent
3d52092c
Fixed windows heatmapdistance bug
Showing
2 changed files
with
4 additions
and
1 deletions
openbr/gui/imageviewer.cpp
| ... | ... | @@ -36,7 +36,8 @@ void br::ImageViewer::setDefaultText(const QString &text) |
| 36 | 36 | |
| 37 | 37 | void br::ImageViewer::setImage(const QString &file, bool async) |
| 38 | 38 | { |
| 39 | - src = QImage(file); | |
| 39 | + if(file.isNull()) src = QImage(); // Gets rid of runtime FileEngine::open warning | |
| 40 | + else src = QImage(file); | |
| 40 | 41 | updatePixmap(async); |
| 41 | 42 | } |
| 42 | 43 | ... | ... |
openbr/plugins/quality.cpp