glimmer-dsl-swt 4.20.13.2 → 4.20.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d2fa9af6ffbacb6449131175cd36971568e98ed763ac861d4126bb638c8f975
4
- data.tar.gz: ef23b0d547e1d42e2832f5f10c0b15b1c70ce3c8adb6b588b6b74dafa8b1e6de
3
+ metadata.gz: a2334810c1c1fb86f4539f50c79e463c1574abab93c58300e7352c68b1a6b77a
4
+ data.tar.gz: 8a64907ff1c3b7eabbd13e289fc7bb603886a9128981af6606082a323b31d952
5
5
  SHA512:
6
- metadata.gz: 58bfac7f7af0ef1de30e4d9db32fb8c218a272c6de892f0b59261e4c9e96458e1b50169e3ee8da96b2c686f05c8687ee79f801189a7eef3bd225bf42ad1e684c
7
- data.tar.gz: 7f5ee3e3f28e7a8bdd32aeea1ac18f20953480ba4dbed2e186e5c299f1af8de908c32df2ae3cfe417599b5b684725cbf06697ec3802e1ab4abddc43946adcf79
6
+ metadata.gz: 11fb6dea6fa4fdaccfde2ec485284a937eea521b7d41726b38c1e92cf098f2bd3d31ec739f5f1cf23f444df65983bea2a49b2dd2816d3dcc3f6a40720f8fc1a7
7
+ data.tar.gz: 936aa733ded3e24d379ee2f0bff42ec0d49abf8410578ebb42b686481a25b820c3a52eaa4bf9680b983e92e92a197b1c53703c54d564ff798fa917ca9de34984
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ### 4.20.13.3
4
+
5
+ - Fix issue regarding `nil` calculated_width/calculated_height encountered in Shape#contain?
6
+
3
7
  ### 4.20.13.2
4
8
 
5
9
  - Support `drop_event.doit = false` to deny dropping and move dragged shape back to where it was
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.20.13.2
1
+ 4.20.13.3
Binary file
@@ -217,7 +217,7 @@ module Glimmer
217
217
  # some shapes may choose to provide a fuzz factor to make usage of this method for mouse clicking more user friendly
218
218
  def contain?(x, y)
219
219
  # assume a rectangular filled shape by default (works for several shapes like image, text, and focus)
220
- x.between?(self.absolute_x, self.absolute_x + calculated_width) && y.between?(self.absolute_y, self.absolute_y + calculated_height)
220
+ x.between?(self.absolute_x, self.absolute_x + calculated_width.to_f) && y.between?(self.absolute_y, self.absolute_y + calculated_height.to_f)
221
221
  end
222
222
 
223
223
  # Returns if shape includes a point. When the shape is filled, this is the same as contain. When the shape is drawn, it only returns true if the point lies on the edge (boundary/border)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glimmer-dsl-swt
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.20.13.2
4
+ version: 4.20.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Maleh