diff --git a/ChangeLog b/ChangeLog index c4f132a1..f5a4c1dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-01 Bart Hakvoort + + * src/OperationResizeMove.cc: fixed another issue in + apply_to_visual(), this time with resizing/moveing the extended + partition. + 2006-03-31 Bart Hakvoort * src/GParted_Core.cc: trivial cleanups diff --git a/src/OperationResizeMove.cc b/src/OperationResizeMove.cc index 7c3003a8..7cd8d9af 100644 --- a/src/OperationResizeMove.cc +++ b/src/OperationResizeMove.cc @@ -119,8 +119,12 @@ void OperationResizeMove::apply_extended_to_visual( std::vector & 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 ) ; }