Resolves: fdo#60904 allow export of VBAProject
xModLibContainerExport has a "VBAProject" entry but xDlgLibContainerExport doesn't, so just export the one we do have Change-Id: I15f7794904a5aff7679f2cf9fd654d741fd5cbe3
This commit is contained in:
parent
227ca23324
commit
6033e2d29d
@ -1106,7 +1106,13 @@ void LibPage::implExportLib( const OUString& aLibName, const OUString& aTargetUR
|
||||
if ( xModLibContainerExport.is() )
|
||||
xModLibContainerExport->exportLibrary( aOULibName, aTargetURL, Handler );
|
||||
|
||||
if ( xDlgLibContainerExport.is() )
|
||||
if (!xDlgLibContainerExport.is())
|
||||
return;
|
||||
Reference<container::XNameAccess> xNameAcc(xDlgLibContainerExport, UNO_QUERY);
|
||||
if (!xNameAcc.is())
|
||||
return;
|
||||
if (!xNameAcc->hasByName(aOULibName))
|
||||
return;
|
||||
xDlgLibContainerExport->exportLibrary(aOULibName, aTargetURL, Handler);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user