Label click shows huge hilited box
Bug #1135200 reported by
Chris
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mudlet |
Fix Released
|
High
|
Chris |
Bug Description
Sometimes labels are made and you can't click on them, but when you click on the upper left of them, a huge box is hilited. It appears there's some math overflow happening.
These are the bounds on a label that's causing this:
x:210
y:114.333
bounding rectangle:
QRectF(210,114 -2.14748e+
This may have happened during label creation or label conversion.
Changed in mudlet: | |
assignee: | nobody → Chris (chrismudlet) |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
A solution:
in map loading, check for infinite values and correct them with the pixmap size. This works, but the 'size' is still wrong, and changes as a function of the zoom level. I think a cleaner way to address everything, and something that will tie into the noScaling labels is to have a clickSize attribute which will scale and tie into the mapper better.