sfx2/source/appl/sfxpicklist.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f5703b39898b737f9b4bf34f0abdd07f24f065e2
Author:     offtkp <parisop...@gmail.com>
AuthorDate: Sat Jul 16 13:05:37 2022 +0300
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Tue Jul 19 13:09:15 2022 +0200

    Replace old png writer in sfxpicklist.cxx
    
    Change-Id: I8dd9925ea07fa16cea6918eef0e6d468d7b743c0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137123
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>

diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
index 22c364669e7e..fb676d981d35 100644
--- a/sfx2/source/appl/sfxpicklist.cxx
+++ b/sfx2/source/appl/sfxpicklist.cxx
@@ -25,7 +25,7 @@
 #include <tools/datetime.hxx>
 #include <tools/urlobj.hxx>
 #include <svl/inethist.hxx>
-#include <vcl/pngwrite.hxx>
+#include <vcl/filter/PngImageWriter.hxx>
 #include <vcl/svapp.hxx>
 #include <officecfg/Office/Common.hxx>
 
@@ -112,8 +112,8 @@ void SfxPickListImpl::AddDocumentToPickList( const 
SfxObjectShell* pDocSh )
             if (!aResultBitmap.IsEmpty())
             {
                 SvMemoryStream aStream(65535, 65535);
-                vcl::PNGWriter aWriter(aResultBitmap);
-                if (aWriter.Write(aStream))
+                vcl::PngImageWriter aWriter(aStream);
+                if (aWriter.write(aResultBitmap))
                 {
                     Sequence<sal_Int8> aSequence(static_cast<const 
sal_Int8*>(aStream.GetData()), aStream.Tell());
                     OUStringBuffer aBuffer;

Reply via email to