diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-07-14 22:01:59 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-07-14 21:16:54 +0200 |
commit | 2e0664015255ffc0f76a11a9cb254564b34de496 (patch) | |
tree | 22873bcde7fb60bf6fd22c923cf118821ad2bde0 /include/oox/drawingml/customshapegeometry.hxx | |
parent | a0d5d9dd9d8c11ec4c63251633081b3270c3ea3d (diff) |
tdf#148647: make sure to update own content on Win clipboard change
Before, only a new call to setContents, or destruction of the data
object referenced from CWinClipboard, would force CWinClipboard to
clean its m_pCurrentClipContent. A data object could be referenced
elsewhere, and so not get destroyed on clipboard change; this kept
the value of m_pCurrentClipContent, and all the following calls to
getContents would still return that stuck own data object.
This change makes CWinClipboard store new own data object pointer
into temporary m_pNewOwnClipContent. In onClipboardContentChanged
notification, the value is moved to m_pCurrentOwnClipContent. This
ensures that following onClipboardContentChanged events will clear
m_pCurrentOwnClipContent, preventing stuck clipboard content.
Change-Id: Idd0a64a820d79bede9deceba8d5800b7fc61e66b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170459
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'include/oox/drawingml/customshapegeometry.hxx')
0 files changed, 0 insertions, 0 deletions