Fix non-skipping of percent sign
This commit is contained in:
parent
b9da170080
commit
6812d2e72d
1 changed files with 4 additions and 1 deletions
|
@ -387,7 +387,10 @@ parse_proportional_spec (char *value, signed *abs, grub_fixed_signed_t *prop)
|
||||||
if (sig)
|
if (sig)
|
||||||
num = -num;
|
num = -num;
|
||||||
if (*ptr == '%')
|
if (*ptr == '%')
|
||||||
*prop += grub_fixed_fsf_divide (grub_signed_to_fixed (num), 100);
|
{
|
||||||
|
*prop += grub_fixed_fsf_divide (grub_signed_to_fixed (num), 100);
|
||||||
|
ptr++;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
*abs += num;
|
*abs += num;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue