[gparted] Fix short by 1 MiB on spinbutton before with resize/move
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Fix short by 1 MiB on spinbutton before with resize/move
- Date: Tue, 25 May 2010 22:27:27 +0000 (UTC)
commit 24d96114caf8a0946b7b9190a16cd40a32af5bbf
Author: Curtis Gedak <gedakc gmail com>
Date: Tue May 25 16:12:11 2010 -0600
Fix short by 1 MiB on spinbutton before with resize/move
src/Dialog_Partition_Resize_Move.cc | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/Dialog_Partition_Resize_Move.cc b/src/Dialog_Partition_Resize_Move.cc
index 4caf886..a12c26f 100644
--- a/src/Dialog_Partition_Resize_Move.cc
+++ b/src/Dialog_Partition_Resize_Move.cc
@@ -141,9 +141,8 @@ void Dialog_Partition_Resize_Move::Resize_Move_Normal( const std::vector<Partiti
spinbutton_before .set_range( MIN_SPACE_BEFORE_MB
, TOTAL_MB - ceil( fs .MIN / double(MEBIBYTE) )
) ;
- spinbutton_before .set_value(
- Utils::round( Utils::sector_to_unit( previous, selected_partition .sector_size, UNIT_MIB ) )
- - MIN_SPACE_BEFORE_MB ) ;
+ spinbutton_before .set_value(
+ Utils::round( Utils::sector_to_unit( previous, selected_partition .sector_size, UNIT_MIB ) ) ) ;
}
//set values of spinbutton_size
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]