[bug] Number >> asRectangle throws exception

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug] Number >> asRectangle throws exception

Sam Phillips
Issue status update for
http://smalltalk.gnu.org/node/260
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/260

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  sdp
 Updated by:   sdp
 Status:       active


GNU Smalltalk ready

st> 2 asRectangle
Object: Rectangle error: did not understand #left:top:right:bottom:
MessageNotUnderstood(Exception)>>signal
Rectangle class(Object)>>doesNotUnderstand: #left:top:right:bottom:
SmallInteger(Number)>>asRectangle
UndefinedObject>>executeStatements
nil
st>






_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] Number >> asRectangle throws exception

Paolo Bonzini-3
Issue status update for
http://smalltalk.gnu.org/project/issue/260
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/260

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  sdp
 Updated by:   bonzinip
-Status:       active
+Status:       fixed

Thanks!

diff --git a/kernel/Rectangle.st b/kernel/Rectangle.st
index da75cbd..505157e 100644
--- a/kernel/Rectangle.st
+++ b/kernel/Rectangle.st
@@ -62,7 +62,7 @@ Object subclass: Rectangle [
        ^self basicNew origin: originPoint corner: originPoint +
extentPoint
     ]
 
-    Rectangle class >> left: leftNumber right: rightNumber top:
topNumber bottom: bottomNumber [
+    Rectangle class >> left: leftNumber top: topNumber right:
rightNumber bottom: bottomNumber [
        "Answer a rectangle with the given coordinates"
 
       




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk