projects
/
redact.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure Relation#rel are floats.
[redact.git]
/
lib
/
redact
/
part.rb
diff --git
a/lib/redact/part.rb
b/lib/redact/part.rb
index d285c19dba139d61cd8ce5dfcd5613b2bca2b426..692a48793d757ab87d3a1c44ece009ed61a2be81 100644
(file)
--- a/
lib/redact/part.rb
+++ b/
lib/redact/part.rb
@@
-1,5
+1,5
@@
#--
#--
-# $Id: part.rb 6
8 2005-09-19 20:03:09
Z tilman $
+# $Id: part.rb 6
9 2005-09-19 20:17:07
Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
@@
-203,13
+203,13
@@
module Redact
attr_reader :rel, :to_id, :offset
def initialize(rel, offset)
attr_reader :rel, :to_id, :offset
def initialize(rel, offset)
- @rel = [rel
, rel
]
+ @rel = [rel
.to_f, rel.to_f
]
@to_id = [-1, -1]
@offset = [offset, offset]
end
def set_rel(x, y)
@to_id = [-1, -1]
@offset = [offset, offset]
end
def set_rel(x, y)
- @rel = [x
, y
]
+ @rel = [x
.to_f, y.to_f
]
end
def set_offset(x, y)
end
def set_offset(x, y)