fixed crasher with unknown filesystems.

* include/Utils.h: fixed crasher with unknown filesystems.
This commit is contained in:
Bart Hakvoort 2004-11-22 20:40:19 +00:00
parent 7dd48df0b2
commit d6be9833ff
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-11-22 Bart Hakvoort <gparted@users.sf.net>
* include/Utils.h: fixed crasher with unknown filesystems.
2004-11-22 Bart Hakvoort <gparted@users.sf.net> 2004-11-22 Bart Hakvoort <gparted@users.sf.net>
* src/GParted_Core.cc: cosmetics * src/GParted_Core.cc: cosmetics

View File

@ -104,9 +104,9 @@ inline FS Get_FS( const Glib::ustring & filesystem, const std::vector<FS> & FILE
for ( t = 0 ; t < FILESYSTEMS .size( ) ; t++ ) for ( t = 0 ; t < FILESYSTEMS .size( ) ; t++ )
if ( FILESYSTEMS[ t ] .filesystem == filesystem ) if ( FILESYSTEMS[ t ] .filesystem == filesystem )
break ; return FILESYSTEMS[ t ] ;
return FILESYSTEMS[ t ] ; return FILESYSTEMS .back( ) ;
} }
inline Glib::ustring Get_Color( const Glib::ustring & filesystem ) inline Glib::ustring Get_Color( const Glib::ustring & filesystem )