]> git.lyx.org Git - features.git/commitdiff
Safety measure for r27988.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 4 Jan 2009 23:39:12 +0000 (23:39 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 4 Jan 2009 23:39:12 +0000 (23:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27990 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiClipboard.cpp

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