Skip to content

Commit

Permalink
Skip rendering of features without geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Oct 20, 2012
1 parent 51122d2 commit 999df64
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,9 @@ void QgsVectorLayer::drawRendererV2( QgsRenderContext& rendererContext, bool lab
{
try
{
if ( !fet.geometry() )
continue; // skip features without geometry

if ( rendererContext.renderingStopped() )
{
break;
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -1050,6 +1056,8 @@ bool QgsVectorLayer::draw( QgsRenderContext& rendererContext )
{
while ( nextFeature( fet ) )
{
if ( !fet.geometry() )
continue; // skip features without geometry

if ( rendererContext.renderingStopped() )
{
Expand Down

0 comments on commit 999df64

Please sign in to comment.