Skip to content

Commit

Permalink
QGIS server: ignore svg items not fixed to pixel position. Developed …
Browse files Browse the repository at this point in the history
…for Faunalia (http://www.faunalia.it) with funding from Regione Toscana - Settore SISTEMA INFORMATIVO TERRITORIALE ED AMBIENTALE
  • Loading branch information
mhugent committed Nov 6, 2012
1 parent 716d619 commit 32265de
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/mapserver/qgsprojectparser.cpp
Expand Up @@ -2554,14 +2554,17 @@ void QgsProjectParser::createSvgAnnotationItems()
{
svgAnnotationElem = svgAnnotationList.at( i ).toElement();
annotationElem = svgAnnotationElem.firstChildElement( "AnnotationItem" );
QSvgRenderer* svg = new QSvgRenderer();
if ( svg->load( convertToAbsolutePath( svgAnnotationElem.attribute( "file" ) ) ) )
{
mSvgAnnotationElems.push_back( qMakePair( svg, annotationElem ) );
}
else
if ( !annotationElem.isNull() && annotationElem.attribute( "mapPositionFixed" ) != "1" )
{
delete svg;
QSvgRenderer* svg = new QSvgRenderer();
if ( svg->load( convertToAbsolutePath( svgAnnotationElem.attribute( "file" ) ) ) )
{
mSvgAnnotationElems.push_back( qMakePair( svg, annotationElem ) );
}
else
{
delete svg;
}
}
}
}
Expand Down

0 comments on commit 32265de

Please sign in to comment.