diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-24 16:52:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-24 20:11:43 +0200 |
commit | 1aa69422be40368c988060c82706c8262f8de737 (patch) | |
tree | bb03afc10468ba8c85536474a4a9dd408cd48da2 /dbaccess | |
parent | d388b9c4d661950a306fdff6cc855f62193a77fe (diff) |
CreateFromSystemClipboard->CreateFromClipboard(GetSystemClipboard())
which is exactly the same thing, but doesn't need vcl::Window
Change-Id: I3d41315b5a656563ba8c861aa86bb27f1b00a15e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99384
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/control/FieldDescControl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index f2275550f387..dff28c54f767 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -1272,7 +1272,7 @@ bool OFieldDescControl::isPasteAllowed() bool bAllowed = (m_pActFocusWindow != nullptr) && IsFocusInEditableWidget(); if ( bAllowed ) { - TransferableDataHelper aTransferData(TransferableDataHelper::CreateFromSystemClipboard(GetParent())); + TransferableDataHelper aTransferData(TransferableDataHelper::CreateFromClipboard(GetSystemClipboard())); bAllowed = aTransferData.HasFormat(SotClipboardFormatId::STRING); } return bAllowed; |