aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/tk/lib/tk/image.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/image.rb b/ext/tk/lib/tk/image.rb
index 6eb7b98d6c..0848eb5966 100644
--- a/ext/tk/lib/tk/image.rb
+++ b/ext/tk/lib/tk/image.rb
@@ -89,9 +89,9 @@ class TkPhotoImage<TkImage
def cget(option)
case option.to_s
when 'data', 'file'
- tk_send 'cget', option
+ tk_send 'cget', '-' << option.to_s
else
- tk_tcl2ruby(tk_send('cget', option))
+ tk_tcl2ruby(tk_send('cget', '-' << option.to_s))
end
end