[app] Fixed check for null image in setClipboardImage
This commit is contained in:
parent
53233b17b1
commit
2aa3b9e568
1 changed files with 2 additions and 2 deletions
|
@ -162,12 +162,12 @@ BooksDialogManager::setClipboardText(
|
|||
|
||||
void
|
||||
BooksDialogManager::setClipboardImage(
|
||||
const ZLImageData &imageData,
|
||||
const ZLImageData& imageData,
|
||||
ClipboardType type) const
|
||||
{
|
||||
// May be invoked on non-UI thread
|
||||
QImage image(*((const ZLQtImageData&)imageData).image());
|
||||
if (image.isNull()) {
|
||||
if (!image.isNull()) {
|
||||
HDEBUG(image.width() << "x" << image.height());
|
||||
Q_EMIT copyImageToClipboard(image);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue