because lp_partition didn't get initialized the libpartedscan for free

* src/GParted_Core.cc: because lp_partition didn't get initialized the
  libpartedscan for free space would always fail. fixed.
This commit is contained in:
Bart Hakvoort 2005-12-29 00:10:05 +00:00
parent 23aa549c7c
commit 0f29376e99
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-12-29 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc: because lp_partition didn't get initialized the
libpartedscan for free space would always fail. fixed.
2005-12-28 Bart Hakvoort <hakvoort@cvs.gnome.org>
* replaced popen() with Glib::spawn_command_line_sync() + general

View File

@ -667,9 +667,11 @@ void GParted_Core::LP_Set_Used_Sectors( Partition & partition )
{
PedFileSystem *fs = NULL;
PedConstraint *constraint = NULL;
if ( lp_disk )
{
lp_partition = ped_disk_get_partition_by_sector( lp_disk, (partition .sector_end + partition .sector_start) / 2 ) ;
if ( lp_partition )
{
fs = ped_file_system_open( & lp_partition ->geom );