]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 27 May 2014 22:00:22 +0000 (22:00 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 27 May 2014 22:00:22 +0000 (22:00 +0000)
MagickCore/fx.c

index 5e315715df7d8000020c27559694a7c094745312..320d9102a7ba9823dff7b530659d8af00838b8ef 100644 (file)
@@ -1925,6 +1925,17 @@ static const char *FxOperatorPrecedence(const char *expression,
           }
         break;
       }
+      case 'E':
+      case 'e':
+      {
+        if ((isdigit((int) ((unsigned char) c)) != 0) &&
+            ((LocaleNCompare(expression,"E+",2) == 0) ||
+             (LocaleNCompare(expression,"E-",2) == 0)))
+          { 
+            expression+=2;  /* scientific notation */
+            break;
+          }
+      }
       case 'J':
       case 'j':
       {