Kaydet (Commit) b35f3dfb authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#706240 Uncaught exception

Change-Id: Ie31f5e1ff74ff8b9f35d7ce08e1f02a780375890
üst 7dda48d5
......@@ -496,21 +496,27 @@ sal_Bool SfxLibraryContainer::isModified()
for( sal_Int32 i = 0 ; i < nNameCount ; i++ )
{
OUString aName = pNames[ i ];
SfxLibrary* pImplLib = getImplLib( aName );
if( pImplLib->isModified() )
try
{
if ( aName == "Standard" )
SfxLibrary* pImplLib = getImplLib( aName );
if( pImplLib->isModified() )
{
// this is a workaround that has to be implemented because
// empty standard library should stay marked as modified
// but should not be treated as modified while it is empty
if ( pImplLib->hasElements() )
if ( aName == "Standard" )
{
// this is a workaround that has to be implemented because
// empty standard library should stay marked as modified
// but should not be treated as modified while it is empty
if ( pImplLib->hasElements() )
return sal_True;
}
else
{
return sal_True;
}
}
else
{
return sal_True;
}
}
catch(const css::container::NoSuchElementException&)
{
}
}
......
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