Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Follow up 0bda714
Ensure that mLegendFilterByMap is set before setting the map when
reading legend xml
- Loading branch information
Showing
with
1 addition
and
2 deletions.
-
+1
−2
src/core/composer/qgscomposerlegend.cpp
|
@@ -353,6 +353,7 @@ bool QgsComposerLegend::readXML( const QDomElement& itemElem, const QDomDocument |
|
|
mSettings.setWrapChar( itemElem.attribute( "wrapChar" ) ); |
|
|
|
|
|
//composer map |
|
|
mLegendFilterByMap = itemElem.attribute( "legendFilterByMap", "0" ).toInt(); |
|
|
if ( !itemElem.attribute( "map" ).isEmpty() ) |
|
|
{ |
|
|
setComposerMap( mComposition->getComposerMapById( itemElem.attribute( "map" ).toInt() ) ); |
|
@@ -369,8 +370,6 @@ bool QgsComposerLegend::readXML( const QDomElement& itemElem, const QDomDocument |
|
|
_readXML( composerItemElem, doc ); |
|
|
} |
|
|
|
|
|
mLegendFilterByMap = itemElem.attribute( "legendFilterByMap", "0" ).toInt(); |
|
|
|
|
|
// < 2.0 projects backward compatibility >>>>> |
|
|
//title font |
|
|
QString titleFontString = itemElem.attribute( "titleFont" ); |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.