diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-07-20 10:55:35 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-08-02 11:41:48 -0400 |
commit | 164188c3e2f0be1d20765accd8d59f5e4df77c3d (patch) | |
tree | d43de9da16df8a4fc5eeec073685790408d58e41 /desktop/source/lib/lokclipboard.cxx | |
parent | 153700dbb5b8fd3bcadb46e668224507a6b7fb45 (diff) |
clipboard: get view setting correct before setClipboard.
Change-Id: If8e9b057b819074f035c598569e3bf6d3d2fff00
Diffstat (limited to 'desktop/source/lib/lokclipboard.cxx')
-rw-r--r-- | desktop/source/lib/lokclipboard.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop/source/lib/lokclipboard.cxx b/desktop/source/lib/lokclipboard.cxx index a959258269a1..ef52a4596c43 100644 --- a/desktop/source/lib/lokclipboard.cxx +++ b/desktop/source/lib/lokclipboard.cxx @@ -25,10 +25,13 @@ rtl::Reference<LOKClipboard> LOKClipboardFactory::getClipboardForCurView() auto it = gClipboards.find(nViewId); if (it != gClipboards.end()) + { + SAL_INFO("lok", "Got clip: " << it->second.get() << " from " << nViewId); return it->second; + } rtl::Reference<LOKClipboard> xClip(new LOKClipboard()); gClipboards[nViewId] = xClip; - SAL_INFO("lok", "Created clipboard for view " << nViewId << " as " << xClip.get()); + SAL_INFO("lok", "Created clip: " << xClip.get() << " for viewId " << nViewId); return xClip; } @@ -81,6 +84,7 @@ void LOKClipboard::setContents( std::vector<Reference<datatransfer::clipboard::XClipboardListener>> aListeners(m_aListeners); datatransfer::clipboard::ClipboardEvent aEv; aEv.Contents = m_xTransferable; + SAL_INFO("lok", "Clip: " << this << " set contents to " << m_xTransferable); aGuard.clear(); |