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:
parent
23aa549c7c
commit
0f29376e99
|
@ -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
|
||||
|
|
|
@ -670,6 +670,8 @@ void GParted_Core::LP_Set_Used_Sectors( Partition & partition )
|
|||
|
||||
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 );
|
||||
|
|
Loading…
Reference in New Issue