1 From 623ea5c4d2871aba2e3e5114ad7d58d6f910a2f3 Mon Sep 17 00:00:00 2001
2 From: Caolán McNamara <caolanm@redhat.com>
3 Date: Thu, 12 Jan 2023 20:55:27 +0000
4 Subject: [PATCH] Related: tdf#151898 fix gtk4 build in 7-4
6 Change-Id: I71b59b7d2eac406817c79bf6911736ad4510771c
9 diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
10 index 8ba6409..b697b0b 100644
11 --- a/vcl/unx/gtk3/gtkinst.cxx
12 +++ b/vcl/unx/gtk3/gtkinst.cxx
15 void picture_set_from_xgraphic(GtkPicture* pPicture, const css::uno::Reference<css::graphic::XGraphic>& rPicture)
17 - if (auto xTempFile = getImageFile(rPicture, false))
18 + if (auto xTempFile = getImageFile(rPicture))
19 gtk_picture_set_filename(pPicture, OUStringToOString(xTempFile->GetFileName(), osl_getThreadTextEncoding()).getStr());
21 gtk_picture_set_pixbuf(pPicture, nullptr);