summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorofftkp <parisoplop@gmail.com>2022-07-09 20:48:32 +0300
committerTomaž Vajngerl <quikee@gmail.com>2022-07-19 13:08:02 +0200
commit21ad38b61618c7bc4daea4e0e7989d8b21bd1150 (patch)
tree2827bea739d8e564a26e54078be1c423f8e03d83 /framework
parentd35ccaf7c3c6f5a8f4223de3c63de2d6f8f6324a (diff)
Replace old png writer in imagemanagerimpl.cxx
Change-Id: I8bc30a218b67d165d1a8ae3d663e5482a8113aa8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137118 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index 5211e79b96dc..26aa0f33400c 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -43,7 +43,7 @@
#include <comphelper/sequence.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <vcl/filter/PngImageReader.hxx>
-#include <vcl/pngwrite.hxx>
+#include <vcl/filter/PngImageWriter.hxx>
#include <memory>
using ::com::sun::star::uno::Sequence;
@@ -395,8 +395,9 @@ bool ImageManagerImpl::implts_storeUserImages(
{
{
std::unique_ptr<SvStream> pSvStream(utl::UcbStreamHelper::CreateStream( xBitmapStream ));
- vcl::PNGWriter aPngWriter( pImageList->GetAsHorizontalStrip() );
- aPngWriter.Write( *pSvStream );
+ vcl::PngImageWriter aPngWriter( *pSvStream );
+ auto rBitmap = pImageList->GetAsHorizontalStrip();
+ aPngWriter.write( rBitmap );
}
// Commit user bitmaps storage