#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Wed, 14 Mar 2018 19:03:13 +0100
changeset 22608 78704fb221f9
parent 22607 4eb32d774d9c
child 22609 3c59c652bb30
#BUGFIX by stefan class: Fraction class changed: #readFrom:onError:
Fraction.st
--- a/Fraction.st	Wed Mar 14 18:01:25 2018 +0100
+++ b/Fraction.st	Wed Mar 14 19:03:13 2018 +0100
@@ -212,8 +212,9 @@
         (s peekFor:$/) ifTrue:[
             denominator := Integer readFrom:s onError:[^ exceptionBlock value].
             result := self numerator:numerator denominator:denominator
+        ] ifFalse:[
+            result := numerator.
         ].
-        result := numerator.
     ].
     hasParen ifTrue:[
         s skipSeparators.
@@ -234,7 +235,7 @@
      Fraction readFromString:'(1/5'
     "
 
-    "Modified: / 14-03-2018 / 17:56:59 / stefan"
+    "Modified: / 14-03-2018 / 19:02:44 / stefan"
 ! !
 
 !Fraction class methodsFor:'class initialization'!