* Fix ticket #5243
* Fix some copy & paste error in size string. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35033 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -75,7 +75,7 @@ byte_string(int64 size)
|
|||||||
} while (value >= 1024 && units[i + 1]);
|
} while (value >= 1024 && units[i + 1]);
|
||||||
|
|
||||||
off_t rounded = off_t(value * 100LL);
|
off_t rounded = off_t(value * 100LL);
|
||||||
sprintf(string, "%g %sB", rounded / 100.0, TR(units[i]));
|
sprintf(string, "%g %s", rounded / 100.0, TR(units[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
@@ -168,7 +168,6 @@ SettingsWindow::SettingsWindow()
|
|||||||
B_WILL_DRAW | B_FRAME_EVENTS);
|
B_WILL_DRAW | B_FRAME_EVENTS);
|
||||||
fSizeSlider->SetLimitLabels(TR("999 MB"), TR("999 MB"));
|
fSizeSlider->SetLimitLabels(TR("999 MB"), TR("999 MB"));
|
||||||
fSizeSlider->SetViewColor(255, 0, 255);
|
fSizeSlider->SetViewColor(255, 0, 255);
|
||||||
box->AddChild(fSizeSlider);
|
|
||||||
|
|
||||||
fWarningStringView = new BStringView("", "");
|
fWarningStringView = new BStringView("", "");
|
||||||
fWarningStringView->SetAlignment(B_ALIGN_CENTER);
|
fWarningStringView->SetAlignment(B_ALIGN_CENTER);
|
||||||
|
|||||||
Reference in New Issue
Block a user