]> git.mxchange.org Git - flightgear.git/commitdiff
John DENKER: validate_format(): handle multiple flags correctly
authormfranz <mfranz>
Tue, 3 Jul 2007 17:26:54 +0000 (17:26 +0000)
committermfranz <mfranz>
Tue, 3 Jul 2007 17:26:54 +0000 (17:26 +0000)
src/GUI/dialog.cxx

index 3303b90aa84dedbbaf1e6f98e766205ace8c7fd2..929f4f8a52d758703f1e5e65ef41ee0ec05c0e1d 100644 (file)
@@ -37,7 +37,7 @@ validate_format(const char *f)
     }
     if (*f++ != '%')
         return f_INVALID;
-    if (*f == ' ' || *f == '+' || *f == '-' || *f == '#')
+    while (*f == ' ' || *f == '+' || *f == '-' || *f == '#' || *f == '0')
         f++;
     while (*f && isdigit(*f))
         f++;