cui/source/dialogs/screenshotannotationdlg.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 4bd2aaaaaed3db9e71e756f9ae004d5fa6afd8cd Author: offtkp <parisop...@gmail.com> AuthorDate: Sat Jul 9 20:35:22 2022 +0300 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Tue Jul 19 13:05:41 2022 +0200 Replace old png writer in screenshotannotationdlg.cxx Change-Id: I21fbd95db7f8a9f036c5ecfbd08d7a46a9683dd8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137114 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx index 1f21c5278f83..6994ce1ed7e8 100644 --- a/cui/source/dialogs/screenshotannotationdlg.cxx +++ b/cui/source/dialogs/screenshotannotationdlg.cxx @@ -35,7 +35,7 @@ #include <vcl/bitmapex.hxx> #include <vcl/customweld.hxx> #include <vcl/event.hxx> -#include <vcl/pngwrite.hxx> +#include <vcl/filter/PngImageWriter.hxx> #include <vcl/svapp.hxx> #include <vcl/salgtype.hxx> #include <vcl/virdev.hxx> @@ -341,8 +341,8 @@ IMPL_LINK_NOARG(ScreenshotAnnotationDlg_Impl, saveButtonHandler, weld::Button&, mxVirtualBufferDevice->GetOutputSizePixel())); // write as PNG - vcl::PNGWriter aPNGWriter(aTargetBitmap); - aPNGWriter.Write(aNew); + vcl::PngImageWriter aPNGWriter(aNew); + aPNGWriter.write(aTargetBitmap); } weld::ScreenShotEntry* ScreenshotAnnotationDlg_Impl::CheckHit(const basegfx::B2IPoint& rPosition)