Skip to content
Permalink
Browse files

Skip rendering of features without geometry

  • Loading branch information
wonder-sk committed Oct 20, 2012
1 parent 51122d2 commit 999df64f4eacb439ef60666206bfc99d3601b751
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/core/qgsvectorlayer.cpp
@@ -731,6 +731,9 @@ void QgsVectorLayer::drawRendererV2( QgsRenderContext& rendererContext, bool lab
{
try
{
if ( !fet.geometry() )
continue; // skip features without geometry

if ( rendererContext.renderingStopped() )
{
break;
@@ -828,6 +831,9 @@ void QgsVectorLayer::drawRendererV2Levels( QgsRenderContext& rendererContext, bo
#endif //Q_WS_MAC
while ( nextFeature( fet ) )
{
if ( !fet.geometry() )
continue; // skip features without geometry

if ( rendererContext.renderingStopped() )
{
stopRendererV2( rendererContext, selRenderer );
@@ -1050,6 +1056,8 @@ bool QgsVectorLayer::draw( QgsRenderContext& rendererContext )
{
while ( nextFeature( fet ) )
{
if ( !fet.geometry() )
continue; // skip features without geometry

if ( rendererContext.renderingStopped() )
{

0 comments on commit 999df64

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