fixed another issue in apply_to_visual(), this time with resizing/moveing

* src/OperationResizeMove.cc: fixed another issue in
  apply_to_visual(), this time with resizing/moveing the extended
  partition.
This commit is contained in:
Bart Hakvoort 2006-04-01 14:36:16 +00:00
parent fff2dc4ad3
commit e5d12906db
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-04-01 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/OperationResizeMove.cc: fixed another issue in
apply_to_visual(), this time with resizing/moveing the extended
partition.
2006-03-31 Bart Hakvoort <hakvoort@cvs.gnome.org>
* src/GParted_Core.cc: trivial cleanups

View File

@ -119,8 +119,12 @@ void OperationResizeMove::apply_extended_to_visual( std::vector<Partition> & par
{
remove_adjacent_unallocated( partitions, index_extended ) ;
partitions[ index_extended ] .sector_start = partition_new .sector_start ;
partitions[ index_extended ] .sector_end = partition_new .sector_end ;
index_extended = find_index_extended( partitions ) ;
if ( index_extended >= 0 )
{
partitions[ index_extended ] .sector_start = partition_new .sector_start ;
partitions[ index_extended ] .sector_end = partition_new .sector_end ;
}
insert_unallocated( partitions, 0, device .length -1, false ) ;
}