Commit d5148919 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Fix calculation of placemark label room to do it for displayName, not name

parent 40d13209
......@@ -572,8 +572,10 @@ bool PlacemarkLayout::layoutPlacemark( const GeoDataPlacemark *placemark, qreal
// If there's not enough space free don't add a VisiblePlacemark here.
QRectF labelRect;
if( !placemark->displayName().isEmpty() ) {
labelRect = roomForLabel( style, x, y, placemark->name() );
const QString labelText = placemark->displayName();
if (!labelText.isEmpty()) {
labelRect = roomForLabel(style, x, y, labelText);
if ( labelRect.isNull() ) {
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment