Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mapserver read ShowingPartialsLabels configurations from project file…
… now and added default init value to QgsPalLabeling
  • Loading branch information
yellow-sky committed Sep 16, 2013
1 parent 54bcef6 commit 030d176
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgspallabeling.cpp
Expand Up @@ -3049,6 +3049,7 @@ QgsPalLabeling::QgsPalLabeling()
mShowingCandidates = false;
mShowingShadowRects = false;
mShowingAllLabels = false;
mShowingPartialsLabels = p.getShowPartial();

mLabelSearchTree = new QgsLabelSearchTree();
}
Expand Down
7 changes: 7 additions & 0 deletions src/mapserver/qgsprojectparser.cpp
Expand Up @@ -3658,5 +3658,12 @@ void QgsProjectParser::loadLabelSettings( QgsLabelingEngineInterface* lbl )
{
pal->setShowingAllLabels( showAllLabelsElem.text().compare( "true", Qt::CaseInsensitive ) == 0 );
}

//mShowingPartialsLabels
QDomElement showPartialsLabelsElem = palElem.firstChildElement( "ShowingPartialsLabels" );
if ( !showPartialsLabelsElem.isNull() )
{
pal->setShowingPartialsLabels( showPartialsLabelsElem.text().compare( "true", Qt::CaseInsensitive ) == 0 );
}
}
}

0 comments on commit 030d176

Please sign in to comment.