Skip to content
Permalink
Browse files

[GRASS] fixed output map freeze in canvas on windows

  • Loading branch information
blazek committed Oct 19, 2015
1 parent 1132867 commit 1582f6a27cbf70fb881e8d896c47106a88451fc3
@@ -489,9 +489,9 @@ QVariant QgsGrassProvider::maxValue( int index )

bool QgsGrassProvider::isValid()
{
QgsDebugMsg( QString( "returned: %1" ).arg( mValid ) );

return mValid && mLayer && mLayer->map() && mLayer->map()->map();
bool valid = mValid && mLayer && mLayer->map() && mLayer->map()->map();
QgsDebugMsg( QString( "valid = %1" ).arg( valid ) );
return valid;
}

QgsCoordinateReferenceSystem QgsGrassProvider::crs()
@@ -93,7 +93,7 @@ bool QgsGrassVectorMap::open()
void QgsGrassVectorMap::close()
{
QgsDebugMsg( toString() );
if ( mOpen )
if ( !mOpen )
{
QgsDebugMsg( "is not open" );
return;
@@ -738,8 +738,12 @@ QgsGrassVectorMap * QgsGrassVectorMapStore::openMap( const QgsGrassObject & gras
{
if ( m->grassObject() == grassObject )
{
QgsDebugMsg( "The map is already open" );
QgsDebugMsg( "The map already exists" );
map = m;
if ( !map->isOpen() )
{
map->open();
}
}
}

@@ -54,6 +54,7 @@ class GRASS_LIB_EXPORT QgsGrassVectorMap : public QObject
bool isValid() const { return mValid; }
bool isFrozen() const { return mFrozen; }
bool isEdited() const { return mIsEdited; }
bool isOpen() const { return mOpen; }
int version() const { return mVersion; }
int oldNumLines() const { return mOldNumLines; }
// number of instances using this map

0 comments on commit 1582f6a

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