diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-28 15:09:31 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-09-19 21:32:24 +0200 |
commit | b9d790e3ca99064dcdd38d6d40255f531dfc32df (patch) | |
tree | 4d24d175951f876357e863ddecc24faf6a3cf975 | |
parent | update credits (diff) | |
download | core-b9d790e3ca99064dcdd38d6d40255f531dfc32df.tar.gz core-b9d790e3ca99064dcdd38d6d40255f531dfc32df.zip |
deb#795131 plausible fix
Change-Id: I95c191ed865d6920845b146c3ef4baf30280a734
(cherry picked from commit e5539b0b53ebaf9b792652e4866eeacf8c10b101)
Reviewed-on: https://gerrit.libreoffice.org/18672
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
-rw-r--r-- | vcl/unx/gtk3/app/gtk3gtkinst.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/app/gtk3gtkinst.cxx b/vcl/unx/gtk3/app/gtk3gtkinst.cxx index f8fd6a6f537f..57160589d749 100644 --- a/vcl/unx/gtk3/app/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/app/gtk3gtkinst.cxx @@ -385,6 +385,8 @@ Reference< css::datatransfer::XTransferable > VclGtkClipboard::getContents() thr void VclGtkClipboard::ClipboardGet(GtkClipboard* /*clipboard*/, GtkSelectionData *selection_data, guint info) { + if (!m_aContents.is()) + return; GdkAtom type(gdk_atom_intern(OUStringToOString(m_aInfoToFlavor[info].MimeType, RTL_TEXTENCODING_UTF8).getStr(), |