[loc] fix human readable size display for RTL languages

* Closes #1254
This commit is contained in:
Pete Batard 2019-02-14 19:34:05 +01:00
parent 555397403a
commit 595f74f70c
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
2 changed files with 6 additions and 6 deletions

View file

@ -198,7 +198,7 @@ char* SizeToHumanReadable(uint64_t size, BOOL copy_to_log, BOOL fake_units)
{
int suffix;
static char str_size[32];
const char* dir = ((right_to_left_mode)&&(!copy_to_log))?RIGHT_TO_LEFT_MARK:"";
const char* dir = ((right_to_left_mode) && (!copy_to_log)) ? LEFT_TO_RIGHT_MARK : "";
double hr_size = (double)size;
double t;
uint16_t i_size;