Kaydet (Commit) 21223d2b authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix assertion error in GtkFolderPicker during recovery dialog

üst b1219178
......@@ -89,7 +89,7 @@ void SAL_CALL SalGtkFolderPicker::setDisplayDirectory( const rtl::OUString& aDir
OString aTxt = unicodetouri( aDirectory );
if( aTxt.lastIndexOf('/') == aTxt.getLength() - 1 )
if( aTxt.lastIndexOf('/') == aTxt.getLength() - 1 && !aTxt.isEmpty() )
aTxt = aTxt.copy( 0, aTxt.getLength() - 1 );
OSL_TRACE( "setting path to %s", aTxt.getStr() );
......
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