Skip to content
Permalink
Browse files

fix #3582

git-svn-id: http://svn.osgeo.org/qgis/trunk@15490 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Mar 14, 2011
1 parent 44fedd3 commit d073c4d7d71398f7acc84e53141171449d597d9d
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/providers/grass/qgsgrass.cpp
@@ -442,7 +442,7 @@ QString GRASS_EXPORT QgsGrass::openMapset( QString gisdbase, QString location, Q

// Check if the mapset is in use
QString gisBase = getenv( "GISBASE" );
if ( gisBase.isNull() ) return QObject::tr( "GISBASE is not set." );
if ( gisBase.isEmpty() ) return QObject::tr( "GISBASE is not set." );

QFileInfo fi( mapsetPath + "/WIND" );
if ( !fi.exists() )
@@ -1104,7 +1104,7 @@ QString GRASS_EXPORT QgsGrass::getInfo( QString info, QString gisdbase, QString
QString cmd = QgsApplication::prefixPath() + "/" QGIS_LIBEXEC_SUBDIR "/grass/modules/qgis.g.info";

arguments.append( "info=" + info );
if ( !map.isNull() )
if ( !map.isEmpty() )
{
QString opt;
switch ( type )
@@ -1138,8 +1138,8 @@ QgsCoordinateReferenceSystem GRASS_EXPORT QgsGrass::crs( QString gisdbase, QStri
try
{
QString wkt = QgsGrass::getInfo( "proj", gisdbase, location );
QgsDebugMsg( "wkt: " + wkt );
crs.createFromWkt( wkt );

}
catch ( QgsGrass::Exception &e )
{

0 comments on commit d073c4d

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