Fix short by 1 MiB on spinbutton before with resize/move

This commit is contained in:
Curtis Gedak 2010-05-25 16:12:11 -06:00
parent afb1ba8a37
commit 24d96114ca
1 changed files with 2 additions and 3 deletions

View File

@ -142,8 +142,7 @@ void Dialog_Partition_Resize_Move::Resize_Move_Normal( const std::vector<Partiti
, TOTAL_MB - ceil( fs .MIN / double(MEBIBYTE) ) , TOTAL_MB - ceil( fs .MIN / double(MEBIBYTE) )
) ; ) ;
spinbutton_before .set_value( spinbutton_before .set_value(
Utils::round( Utils::sector_to_unit( previous, selected_partition .sector_size, UNIT_MIB ) ) Utils::round( Utils::sector_to_unit( previous, selected_partition .sector_size, UNIT_MIB ) ) ) ;
- MIN_SPACE_BEFORE_MB ) ;
} }
//set values of spinbutton_size //set values of spinbutton_size