[前][次][番号順一覧][スレッド一覧]

ruby-changes:36953

From: hsbt <ko1@a...>
Date: Sat, 27 Dec 2014 10:11:35 +0900 (JST)
Subject: [ruby-changes:36953] hsbt:r49034 (trunk): * ext/tk/lib/tkextlib/tcllib/plotchart.rb: fix to invoke correct function

hsbt	2014-12-27 10:11:28 +0900 (Sat, 27 Dec 2014)

  New Revision: 49034

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49034

  Log:
    * ext/tk/lib/tkextlib/tcllib/plotchart.rb: fix to invoke correct function
      of tcllib. Patch by @zalt50 [fix GH-787]

  Modified files:
    trunk/ChangeLog
    trunk/ext/tk/lib/tkextlib/tcllib/plotchart.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49033)
+++ ChangeLog	(revision 49034)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Dec 27 10:11:21 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* ext/tk/lib/tkextlib/tcllib/plotchart.rb: fix to invoke correct function
+	  of tcllib. Patch by @zalt50 [fix GH-787]
+
 Sat Dec 27 10:03:41 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* tool/make-snapshot: show sha1 digest when making packages.
Index: ext/tk/lib/tkextlib/tcllib/plotchart.rb
===================================================================
--- ext/tk/lib/tkextlib/tcllib/plotchart.rb	(revision 49033)
+++ ext/tk/lib/tkextlib/tcllib/plotchart.rb	(revision 49034)
@@ -142,7 +142,7 @@ module Tk::Tcllib::Plotchart https://github.com/ruby/ruby/blob/trunk/ext/tk/lib/tkextlib/tcllib/plotchart.rb#L142
   end
 
   def self.pixel_to_coords(w, x, y)
-    list(tk_call_without_enc('::Plotchart::coordsToPixel', w.path, x, y))
+    list(tk_call_without_enc('::Plotchart::pixelToCoords', w.path, x, y))
   end
 
   def self.determine_scale(*args) # (xmin, xmax, inverted=false)
@@ -311,7 +311,7 @@ module Tk::Tcllib::Plotchart https://github.com/ruby/ruby/blob/trunk/ext/tk/lib/tkextlib/tcllib/plotchart.rb#L311
     end
 
     def pixel_to_coords(x, y)
-      list(tk_call_without_enc('::Plotchart::coordsToPixel', @path, x, y))
+      list(tk_call_without_enc('::Plotchart::pixelToCoords', @path, x, y))
     end
 
     def determine_scale(xmax, ymax)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]