Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
raster enabled
git-svn-id: http://svn.osgeo.org/qgis/trunk@4752 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jan 25, 2006
1 parent b291d1f commit fd7799c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -1106,6 +1106,10 @@ void QgsGrassModuleInput::updateQgisLayers()
}
}

// Note: QDir::cleanPath is using '/' also on Windows
//QChar sep = QDir::separator();
QChar sep = '/';

int nlayers = canvas->layerCount();
for ( int i = 0; i < nlayers; i++ ) {
QgsMapLayer *layer = canvas->getZpos(i);
Expand Down Expand Up @@ -1137,10 +1141,6 @@ void QgsGrassModuleInput::updateQgisLayers()
#ifdef QGISDEBUG
std::cerr << "source = " << source.ascii() << std::endl;
#endif

// Note: QDir::cleanPath is using '/' also on Windows
//QChar sep = QDir::separator();
QChar sep = '/';

// Check GISBASE and LOCATION
QStringList split = QStringList::split ( sep, source );
Expand Down Expand Up @@ -1204,7 +1204,6 @@ void QgsGrassModuleInput::updateQgisLayers()
// Check if it is GRASS raster
QString source = QDir::cleanDirPath ( layer->source() );

QChar sep = QDir::separator();
if ( source.contains( "cellhd" ) == 0 ) continue;

// Most probably GRASS layer, check GISBASE and LOCATION
Expand Down

0 comments on commit fd7799c

Please sign in to comment.