--
-$Id: ChangeLog 68 2005-09-19 20:03:09Z tilman $
+$Id: ChangeLog 69 2005-09-19 20:17:07Z tilman $
++
2005-09-19 Tilman Sauerbeck (tilman at code-monkey de)
used the "right" argument for the "left" border
* lib/redact/part.rb: Set "dragable.events_id" to -1 until it's
properly implemented
+ * lib/redact/part.rb: Make sure Relation#rel are floats
2005-08-25 Tilman Sauerbeck (tilman at code-monkey de)
* Released version 0.1.4
#--
-# $Id: part.rb 68 2005-09-19 20:03:09Z tilman $
+# $Id: part.rb 69 2005-09-19 20:17:07Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
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)
- @rel = [x, y]
+ @rel = [x.to_f, y.to_f]
end
def set_offset(x, y)