diff options
author | offtkp <parisoplop@gmail.com> | 2022-07-16 19:08:22 +0300 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-07-19 13:21:20 +0200 |
commit | e50ff311ceda513fdcff4b73546d039bb847a0b9 (patch) | |
tree | d7f75029ae2463bf919d75988a3775d6a25f3e3c /vcl/qt5 | |
parent | c6082fd9fe2b1f1c3af6c7086a436405ad4c92b6 (diff) |
Replace old png writer in QtTools.cxx
Change-Id: I4f6438b811e7e97aedda90508423982cb82e0008
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137131
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/QtTools.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/qt5/QtTools.cxx b/vcl/qt5/QtTools.cxx index f9a0a0e0e328..030b3af2b5a3 100644 --- a/vcl/qt5/QtTools.cxx +++ b/vcl/qt5/QtTools.cxx @@ -24,7 +24,7 @@ #include <tools/stream.hxx> #include <vcl/event.hxx> #include <vcl/image.hxx> -#include <vcl/pngwrite.hxx> +#include <vcl/filter/PngImageWriter.hxx> #include <QtGui/QImage> @@ -111,8 +111,9 @@ QImage toQImage(const Image& rImage) if (!!rImage) { SvMemoryStream aMemStm; - vcl::PNGWriter aWriter(rImage.GetBitmapEx()); - aWriter.Write(aMemStm); + auto rBitmapEx = rImage.GetBitmapEx(); + vcl::PngImageWriter aWriter(aMemStm); + aWriter.write(rBitmapEx); aImage.loadFromData(static_cast<const uchar*>(aMemStm.GetData()), aMemStm.TellEnd()); } |