Skip to content

Commit

Permalink
Fix compiling w/ WITH_QTWEBKIT=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jul 15, 2015
1 parent 705b51c commit 7df1402
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5836,12 +5836,14 @@ bool QgisApp::loadAnnotationItemsFromProject( const QDomDocument& doc )
newFormItem->readXML( doc, formItemList.at( i ).toElement() );
}

#ifdef WITH_QTWEBKIT
QDomNodeList htmlItemList = doc.elementsByTagName( "HtmlAnnotationItem" );
for ( int i = 0; i < htmlItemList.size(); ++i )
{
QgsHtmlAnnotationItem* newHtmlItem = new QgsHtmlAnnotationItem( mMapCanvas );
newHtmlItem->readXML( doc, htmlItemList.at( i ).toElement() );
}
#endif

QDomNodeList svgItemList = doc.elementsByTagName( "SVGAnnotationItem" );
for ( int i = 0; i < svgItemList.size(); ++i )
Expand Down

0 comments on commit 7df1402

Please sign in to comment.