diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-26 14:56:25 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-12-27 00:55:21 +0100 |
commit | 911c2b2a0ed20576ff47c6232e498a8e7ab129a4 (patch) | |
tree | 67558ed0681e63ae81d5de396f41ab71cae83c6a /vcl | |
parent | d25ca30dd2005e162e5eadf94a49215931a37530 (diff) |
fix assertion error in GtkFolderPicker during recovery dialog
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx index e8e45784da79..ec1b0c8910cb 100644 --- a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx +++ b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx @@ -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() ); |