Skip to content
Permalink
Browse files

check raster layer after dynamic cast

git-svn-id: http://svn.osgeo.org/qgis/trunk@5084 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek
rblazek committed Mar 24, 2006
1 parent f8aa37e commit 0812d66b8e64cf146030a5a0d937717ad304e2a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgisapp.cpp
@@ -4954,9 +4954,9 @@ void QgisApp::activateDeactivateLayerRelatedActions(const QgsMapLayer* layer)
mActionMoveVertex->setEnabled(false);

const QgsRasterLayer* vlayer = dynamic_cast<const QgsRasterLayer*> (layer);
const QgsRasterDataProvider* dprovider = vlayer->getDataProvider();
if (vlayer)
{
const QgsRasterDataProvider* dprovider = vlayer->getDataProvider();
// does provider allow the identify map tool?
if (dprovider->capabilities() & QgsRasterDataProvider::Identify)
{

0 comments on commit 0812d66

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