[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - vcl/unx

Caolán McNamara caolanm at redhat.com
Thu Sep 17 13:40:02 PDT 2015


 vcl/unx/gtk3/app/gtk3gtkinst.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 60b23430d3eba5e3cf1b45faed791120f5f0e197
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Aug 28 15:09:31 2015 +0100

    deb#795131 plausible fix
    
    Change-Id: I95c191ed865d6920845b146c3ef4baf30280a734
    (cherry picked from commit e5539b0b53ebaf9b792652e4866eeacf8c10b101)
    Reviewed-on: https://gerrit.libreoffice.org/18672
    Reviewed-by: Maxim Monastirsky <momonasmon at gmail.com>
    Tested-by: Maxim Monastirsky <momonasmon at gmail.com>

diff --git a/vcl/unx/gtk3/app/gtk3gtkinst.cxx b/vcl/unx/gtk3/app/gtk3gtkinst.cxx
index f8fd6a6..5716058 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(),


More information about the Libreoffice-commits mailing list