Changeset 5155


Ignore:
Timestamp:
Mar 18, 2015, 2:44:57 PM (4 years ago)
Author:
ldelgass
Message:

Don't set label priority unless it is not blank.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geovis/trunk/RendererCmd.cpp

    r5154 r5155  
    13201320        ts->fill()->color() = osgEarth::Symbology::Color(fgR, fgG, fgB);
    13211321        ts->content() = osgEarth::Symbology::StringExpression(content);
    1322         ts->priority() = osgEarth::Symbology::NumericExpression(priority);
     1322        if (priority != NULL && strlen(priority) > 0) {
     1323            ts->priority() = osgEarth::Symbology::NumericExpression(priority);
     1324        }
    13231325        ts->removeDuplicateLabels() = removeDupes;
    13241326        //ts->font() = "Arial";
Note: See TracChangeset for help on using the changeset viewer.