[cairo-commit] rcairo/src/lib/cairo/context path.rb,1.1,1.2
Kouhei Sutou
commit at pdx.freedesktop.org
Mon Apr 30 02:20:37 PDT 2007
Committed by: kou
Update of /cvs/cairo/rcairo/src/lib/cairo/context
In directory kemper:/tmp/cvs-serv18821/src/lib/cairo/context
Modified Files:
path.rb
Log Message:
* src/lib/cairo/context/path.rb
(Cairo::Context::Path#map_path_onto): fixed a boundary value bug.
Index: path.rb
===================================================================
RCS file: /cvs/cairo/rcairo/src/lib/cairo/context/path.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- path.rb 6 Mar 2007 12:17:34 -0000 1.1
+++ path.rb 30 Apr 2007 09:20:27 -0000 1.2
@@ -15,12 +15,12 @@
new_path
path.each do |type, points|
case type
- when PATH_CURVE_TO
- curve_to(*points.collect(&block).flatten)
when PATH_MOVE_TO
move_to(*points.collect(&block).flatten)
when PATH_LINE_TO
line_to(*points.collect(&block).flatten)
+ when PATH_CURVE_TO
+ curve_to(*points.collect(&block).flatten)
when PATH_CLOSE_PATH
close_path
end
@@ -38,7 +38,7 @@
type = points = nil
path.each do |type, points|
i += 1
- break if d <= parameterized_path[i]
+ break if d < parameterized_path[i]
d -= parameterized_path[i]
case type
when PATH_MOVE_TO
More information about the cairo-commit
mailing list