summaryrefslogtreecommitdiff
path: root/lib/tkcanvas.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tkcanvas.rb')
-rw-r--r--lib/tkcanvas.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tkcanvas.rb b/lib/tkcanvas.rb
index c4a7478c23..1cf24eeb7b 100644
--- a/lib/tkcanvas.rb
+++ b/lib/tkcanvas.rb
@@ -740,7 +740,7 @@ class TkImage<TkObject
tk_call('image', 'type', @path)
end
def width
- number(tk_call('image', 'height', @path))
+ number(tk_call('image', 'width', @path))
end
def TkImage.names