Label click shows huge hilited box

Bug #1135200 reported by Chris
6
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+09x-2.14748e+09)

This may have happened during label creation or label conversion.

Revision history for this message
Chris (chrismudlet) wrote :

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.

Revision history for this message
Chris (chrismudlet) wrote :
Changed in mudlet:
importance: Undecided → High
status: New → Fix Committed
Chris (chrismudlet)
Changed in mudlet:
assignee: nobody → Chris (chrismudlet)
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.