summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-28 15:09:31 +0100
committerMaxim Monastirsky <momonasmon@gmail.com>2015-09-17 20:39:36 +0000
commit60b23430d3eba5e3cf1b45faed791120f5f0e197 (patch)
tree15c160958b7ec35513e929b4de13300dc020e3fe /vcl
parent82968ad4d4d84454987141f57de9872d92c49be5 (diff)
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>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/app/gtk3gtkinst.cxx2
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(),