coverity#707196 Uncaught exception
Change-Id: I4f42040c7e12507365f12d09f80d3641b4d5ca02
This commit is contained in:
parent
c12a299784
commit
bf89444ca8
@ -66,17 +66,27 @@ OUString SAL_CALL SmFilterDetect::detect( Sequence< PropertyValue >& lDescriptor
|
|||||||
if ( pInStrm->remainingSize() == 0 )
|
if ( pInStrm->remainingSize() == 0 )
|
||||||
return OUString();
|
return OUString();
|
||||||
|
|
||||||
SotStorageRef aStorage = new SotStorage( pInStrm, false );
|
bool bStorageOk = false;
|
||||||
if ( !aStorage->GetError() )
|
try
|
||||||
{
|
{
|
||||||
if ( aStorage->IsStream("Equation Native") )
|
SotStorageRef aStorage = new SotStorage( pInStrm, false );
|
||||||
|
bStorageOk = !aStorage->GetError();
|
||||||
|
if (bStorageOk)
|
||||||
{
|
{
|
||||||
sal_uInt8 nVersion;
|
if ( aStorage->IsStream("Equation Native") )
|
||||||
if ( GetMathTypeVersion( aStorage, nVersion ) && nVersion <=3 )
|
{
|
||||||
return OUString("math_MathType_3x");
|
sal_uInt8 nVersion;
|
||||||
|
if ( GetMathTypeVersion( aStorage, nVersion ) && nVersion <=3 )
|
||||||
|
return OUString("math_MathType_3x");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
catch (const css::ucb::ContentCreationException &e)
|
||||||
|
{
|
||||||
|
SAL_WARN("starmath", "SmFilterDetect::detect caught " << e.Message);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!bStorageOk)
|
||||||
{
|
{
|
||||||
// 200 should be enough for the XML
|
// 200 should be enough for the XML
|
||||||
// version, encoding and !DOCTYPE
|
// version, encoding and !DOCTYPE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user