Skip to content

Commit ae722e7

Browse files
author
wonder
committed
Fixed a crash in quick print when using symbology-ng
git-svn-id: http://svn.osgeo.org/qgis/trunk@12173 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 95bc058 commit ae722e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/qgsquickprint.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ void QgsQuickPrint::printMap()
403403
{
404404
QgsVectorLayer *mypVectorLayer =
405405
qobject_cast<QgsVectorLayer *>( mypLayer );
406-
if ( mypVectorLayer )
406+
// TODO: add support for symbology-ng renderers
407+
if ( mypVectorLayer && mypVectorLayer->renderer() )
407408
{
408409
QString myLayerName = mypVectorLayer->name();
409410
QIcon myIcon;

0 commit comments

Comments
 (0)