Kaydet (Commit) bd86b38c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make ImportCGM signature match ImportCGMPointer (in sdcgmfilter.cxx)

Change-Id: I363777ff59b1756a15615d3daaa0c95542632361
üst da77897d
......@@ -710,7 +710,7 @@ bool CGM::Write( SvStream& rIStm )
// GraphicImport - the exported function
extern "C" SAL_DLLPUBLIC_EXPORT sal_uInt32 SAL_CALL
ImportCGM( OUString& rFileName, uno::Reference< frame::XModel > & rXModel, sal_uInt32 nMode, void* pProgressBar )
ImportCGM( OUString& rFileName, uno::Reference< frame::XModel > & rXModel, sal_uInt32 nMode, css::uno::Reference<css::task::XStatusIndicator> & aXStatInd )
{
sal_uInt32 nStatus = 0; // retvalue == 0 -> ERROR
......@@ -733,11 +733,8 @@ ImportCGM( OUString& rFileName, uno::Reference< frame::XModel > & rXModel, sal_u
sal_uInt64 const nInSize = pIn->remainingSize();
pIn->Seek( 0 );
uno::Reference< task::XStatusIndicator > aXStatInd;
sal_uInt32 nNext = 0;
sal_uInt32 nAdd = nInSize / 20;
if ( pProgressBar )
aXStatInd = *(uno::Reference< task::XStatusIndicator > *)pProgressBar;
bProgressBar = aXStatInd.is();
if ( bProgressBar )
aXStatInd->start( "CGM Import" , nInSize );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment