diff options
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index 24ecf29d4d22..8757f01df6a9 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -30,7 +30,7 @@ #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp> #include <com/sun/star/resource/StringResourceWithStorage.hpp> #include <com/sun/star/resource/StringResourceWithLocation.hpp> -#include <com/sun/star/document/GraphicObjectResolver.hpp> +#include <com/sun/star/document/GraphicStorageHandler.hpp> #include <com/sun/star/document/XGraphicStorageHandler.hpp> #include <dlgcont.hxx> #include <comphelper/fileformat.h> @@ -242,10 +242,8 @@ void SfxDialogLibraryContainer::storeLibrariesToStorage( const uno::Reference< e if (!vxGraphicList.empty()) { // Export the images to the storage - Reference<document::XGraphicObjectResolver> xGraphicResolver; - xGraphicResolver.set(document::GraphicObjectResolver::createWithStorage(mxContext, xStorage)); Reference<document::XGraphicStorageHandler> xGraphicStorageHandler; - xGraphicStorageHandler.set(xGraphicResolver, uno::UNO_QUERY); + xGraphicStorageHandler.set(document::GraphicStorageHandler::createWithStorage(mxContext, xStorage)); if (xGraphicStorageHandler.is()) { for (uno::Reference<graphic::XGraphic> const & rxGraphic : vxGraphicList) |