Skip to content

Commit

Permalink
Fixed a crash in quick print when using symbology-ng
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12173 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Nov 18, 2009
1 parent 95bc058 commit ae722e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsquickprint.cpp
Expand Up @@ -403,7 +403,8 @@ void QgsQuickPrint::printMap()
{
QgsVectorLayer *mypVectorLayer =
qobject_cast<QgsVectorLayer *>( mypLayer );
if ( mypVectorLayer )
// TODO: add support for symbology-ng renderers
if ( mypVectorLayer && mypVectorLayer->renderer() )
{
QString myLayerName = mypVectorLayer->name();
QIcon myIcon;
Expand Down

0 comments on commit ae722e7

Please sign in to comment.