preview: dont try to display null image
This commit is contained in:
parent
fccc0ac09c
commit
0e7c03b30f
@ -936,7 +936,8 @@ bool Preview::loadDocInCurrentTab(const Rcl::Doc &idoc, int docnum)
|
||||
|
||||
if (!fn.empty()) {
|
||||
editor->m_image = QImage(fn.c_str());
|
||||
editor->displayImage();
|
||||
if (!editor->m_image.isNull())
|
||||
editor->displayImage();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user