showDist icon indicating copy to clipboard operation
showDist copied to clipboard

First ever traceback!

Open ryanbugden opened this issue 1 year ago • 0 comments

Traceback (most recent call last):
  File "/Applications/RoboFont-4_5b2.app/Contents/Resources/lib/python3.12/mojo/subscriber.py", line 3414, in timerFire_
    self.fire()
  File "/Applications/RoboFont-4_5b2.app/Contents/Resources/lib/python3.12/mojo/subscriber.py", line 3435, in fire
    self.callback(self)
  File "/Applications/RoboFont-4_5b2.app/Contents/Resources/lib/python3.12/mojo/subscriber.py", line 2005, in _defconCoalescerCallback
    method(data)
  File "showDist.py", line 148, in glyphDidChangeSelection
  File "showDist.py", line 172, in setTextForSelection
  File "showDist.py", line 102, in __init__
  File "showDist.py", line 111, in sel_box
AttributeError: 'tuple' object has no attribute 'x'

Here is the glif that caused it

<?xml version='1.0' encoding='UTF-8'?>
<glyph name="space" format="2">
  <advance width="221"/>
  <outline>
    <contour>
      <point x="11" y="28" type="move"/>
      <point x="6" y="11"/>
      <point x="13" y="0"/>
      <point x="28" y="0" type="curve" smooth="yes"/>
      <point x="123" y="0" type="line" smooth="yes"/>
      <point x="140" y="0"/>
      <point x="146" y="5"/>
      <point x="152" y="24" type="curve" smooth="yes"/>
      <point x="207" y="190"/>
      <point x="225" y="194"/>
      <point x="248" y="194" type="curve"/>
    </contour>
    <contour>
      <point x="191" y="144" type="curve"/>
      <point x="193" y="154"/>
      <point x="191" y="144"/>
    </contour>
  </outline>
</glyph>

I was marquee-selecting this point. image

ryanbugden avatar Jun 28 '24 00:06 ryanbugden