Skip to content
Permalink
Browse files

Fix crash when right clicking raster layer (indentified by Coverity)

  • Loading branch information
nyalldawson committed Mar 12, 2016
1 parent 66938e9 commit 1e1dfca7d31eaeef02bfd354a92fdef6331912d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsapplayertreeviewmenuprovider.cpp
@@ -106,7 +106,7 @@ QMenu* QgsAppLayerTreeViewMenuProvider::createContextMenu()
// set layer scale visibility
menu->addAction( tr( "&Set Layer Scale Visibility" ), QgisApp::instance(), SLOT( setLayerScaleVisibility() ) );

if ( !vlayer->isInScaleRange( mCanvas->scale() ) )
if ( !layer->isInScaleRange( mCanvas->scale() ) )
menu->addAction( tr( "Zoom to Layer Scale" ), QgisApp::instance(), SLOT( zoomToLayerScale() ) );

// set layer crs

4 comments on commit 1e1dfca

@nyalldawson

This comment has been minimized.

Copy link
Collaborator Author

@nyalldawson nyalldawson replied Mar 12, 2016

@SebDieBln here you go - another one character fix for you. And this one fixes a hard crash in app... So... Your turn ;)

@SebDieBln

This comment has been minimized.

Copy link
Contributor

@SebDieBln SebDieBln replied Mar 12, 2016

I am still hunting, but this one is really hard to beat!
Maybe using some of the forensic tools for finding bugs by geographic(!) methods will increase my chances...

@nyalldawson

This comment has been minimized.

Copy link
Collaborator Author

@nyalldawson nyalldawson replied Mar 13, 2016

@SebDieBln on second thoughts, it's probably cheating to give me credit for this. I guess Coverity is winning at the moment ;)

@nyalldawson

This comment has been minimized.

Copy link
Collaborator Author

@nyalldawson nyalldawson replied Mar 15, 2016

@SebDieBln cool video btw. really interesting since in my non-freelance work I'm employed by the local law enforcement and we use a lot of those geographic profiling principles!

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