summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-26 14:56:25 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-26 15:18:45 +0100
commit21223d2be0d7aac9dc07d730f6365ce9c39f5faf (patch)
treed80fd27c28f572fc7be36a36a134312034db410c /vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
parentb12191787a4b03549acb2c6dff4946265cc64e77 (diff)
fix assertion error in GtkFolderPicker during recovery dialog
Diffstat (limited to 'vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx')
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx2
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() );