diff --git a/app/src/BooksDialogManager.cpp b/app/src/BooksDialogManager.cpp index e7d6f1b..c794921 100644 --- a/app/src/BooksDialogManager.cpp +++ b/app/src/BooksDialogManager.cpp @@ -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); }