cui/source/options/optgdlg.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit ad33c92716d5daa912ff7ce383c8d0b77cb4b9d2
Author:     Michael Weghorn <[email protected]>
AuthorDate: Fri Feb 27 18:43:55 2026 +0100
Commit:     Michael Weghorn <[email protected]>
CommitDate: Sat Feb 28 09:36:53 2026 +0100

    cui: Don't use SystemClipboard service ctor in OfaViewTabPage
    
    Instead, simply use weld::Widget::get_clipboard to
    get the clipboard instance.
    
    No change in behavior intended or seen when
    testing like this on Linux:
    
    * start Writer with env vars SAL_ENABLESKIA=1 SAL_USE_VCLPLUGIN=gen
    * "Tools" -> "Options" -> "LibreOfficeDev" -> "View"
    * press the "Copy skia.log" button
    * paste the clipboard content somewhere
    
    Change-Id: I93d340dd3b031d53b97ac6a80ed6b0e1528ced8c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200649
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <[email protected]>

diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx
index 49016f75c296..153011975cab 100644
--- a/cui/source/options/optgdlg.cxx
+++ b/cui/source/options/optgdlg.cxx
@@ -85,7 +85,6 @@
 #include <svtools/apearcfg.hxx>
 #include <svtools/optionsdrawinglayer.hxx>
 #include <svtools/restartdialog.hxx>
-#include <com/sun/star/datatransfer/clipboard/SystemClipboard.hpp>
 #include <vcl/unohelp2.hxx>
 
 #if defined(_WIN32)
@@ -591,8 +590,7 @@ IMPL_LINK_NOARG(OfaViewTabPage, OnCopySkiaLog, 
weld::Button&, void)
 {
 #if HAVE_FEATURE_SKIA
     css::uno::Reference<css::datatransfer::clipboard::XClipboard> xClipboard =
-        css::datatransfer::clipboard::SystemClipboard::create(
-            comphelper::getProcessComponentContext());
+        m_xSkiaLog->get_clipboard();
     OUString sInfo = SkiaHelper::readLog();
     vcl::unohelper::TextDataObject::CopyStringTo(sInfo, xClipboard);
     m_xSkiaLog->set_from_icon_name(RID_SVXBMP_COPY);

Reply via email to