Fix non-skipping of percent sign

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-01-05 21:06:27 +01:00
parent b9da170080
commit 6812d2e72d

View file

@ -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;
} }