From 0446d03a0305ba74db28a6df8e5e0e0aa82f3caa Mon Sep 17 00:00:00 2001 From: groogy Date: Sat, 27 Nov 2010 23:48:33 +0000 Subject: [PATCH] Created an instance of wrong class. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1721 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-graphics/graphics/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/ruby/sfml-graphics/graphics/Text.cpp b/bindings/ruby/sfml-graphics/graphics/Text.cpp index dc1a68641..089c3463f 100644 --- a/bindings/ruby/sfml-graphics/graphics/Text.cpp +++ b/bindings/ruby/sfml-graphics/graphics/Text.cpp @@ -213,7 +213,7 @@ static VALUE Text_GetRect( VALUE self ) sf::Text *object = NULL; Data_Get_Struct( self, sf::Text, object ); const sf::FloatRect rect = object->GetRect(); - return rb_funcall( globalVector2Class, rb_intern( "new" ), 4, + return rb_funcall( globalRectClass, rb_intern( "new" ), 4, rb_float_new( rect.Left ), rb_float_new( rect.Top ), rb_float_new( rect.Width ), rb_float_new( rect.Height ) ); }