diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uiconfiguration/imagemanagerimpl.cxx | 7 |
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 |