Skip to content
Permalink
Browse files

QGIS server: ignore svg items not fixed to pixel position. Developed …

…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 32265de64b44a9e70164d25051c53313f91d00a8
Showing with 10 additions and 7 deletions.
  1. +10 −7 src/mapserver/qgsprojectparser.cpp
@@ -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;
}
}
}
}

0 comments on commit 32265de

Please sign in to comment.
You can’t perform that action at this time.