prevented a possible segfault at startup. Thanks to LarryT for finding

* src/DrawingAreaVisualDisk.cc: prevented a possible segfault at
  startup. Thanks to LarryT for finding this.
This commit is contained in:
Bart Hakvoort 2006-03-25 18:14:33 +00:00
parent 99cebc81d3
commit b52bfbc308
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-03-25 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/DrawingAreaVisualDisk.cc: prevented a possible segfault at
startup. Thanks to LarryT for finding this.
2006-03-24 Bart Hakvoort <hakvoort@cvs.gnome.org>
* lots of cleanups in operationhandling. This resulted in cleaner/less

View File

@ -27,6 +27,8 @@ namespace GParted
DrawingAreaVisualDisk::DrawingAreaVisualDisk()
{
selected_vp = NULL ;
//set and allocated some standard colors
color_used .set( Utils::Get_Color( GParted::FS_USED ) );
get_colormap() ->alloc_color( color_used ) ;