Safety measure for r27988.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27990 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-01-04 23:39:12 +00:00
parent 9d48ad4f74
commit d57b6f315d

View File

@ -346,7 +346,7 @@ bool GuiClipboard::hasTextContents() const
{ {
QMimeData const * const source = QMimeData const * const source =
qApp->clipboard()->mimeData(QClipboard::Clipboard); qApp->clipboard()->mimeData(QClipboard::Clipboard);
return source->hasText(); return source && source->hasText();
} }