fixed issue with resize/move of extended partitions

* src/GParted_Core.cc: fixed issue with resize/move of extended
  partitions
This commit is contained in:
Bart Hakvoort 2006-07-23 10:33:41 +00:00
parent f0d4890a92
commit 069662588e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-07-23 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc: fixed issue with resize/move of extended
partitions
2006-07-23 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/Win_GParted.cc: added FIXME:

View File

@ -1074,7 +1074,8 @@ bool GParted_Core::resize_move( const Device & device,
{
//extended is a special case..
if ( partition_old .type == GParted::TYPE_EXTENDED )
return resize_move_partition( partition_old, partition_new, operation_details ) ;
return calculate_exact_geom( partition_old, partition_new, operation_details ) &&
resize_move_partition( partition_old, partition_new, operation_details ) ;
//see if we need move or resize..
if ( partition_new .sector_start != partition_old .sector_start )