mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[GRASS] fixed input region check
This commit is contained in:
parent
b2ca9d5141
commit
6a1f1fdf0d
@ -931,6 +931,7 @@ QgsGrassModuleInput::QgsGrassModuleInput( QgsGrassModule *module,
|
||||
if ( type() == QgsGrassObject::Raster )
|
||||
mUsesRegion = true;
|
||||
}
|
||||
QgsDebugMsg( QString( "mUsesRegion = %1" ).arg( mUsesRegion ) );
|
||||
onChanged( "" );
|
||||
}
|
||||
|
||||
|
@ -837,11 +837,9 @@ bool QgsGrassModuleStandardOptions::usesRegion()
|
||||
for ( int i = 0; i < mParams.size(); i++ )
|
||||
{
|
||||
QgsGrassModuleInput *input = dynamic_cast<QgsGrassModuleInput *>( mParams[i] );
|
||||
if ( input && input->useRegion() )
|
||||
if ( input && input->usesRegion() )
|
||||
return true;
|
||||
|
||||
/* It only make sense to check input, right?
|
||||
* Output has no region yet */
|
||||
QgsGrassModuleOption *option = dynamic_cast<QgsGrassModuleOption *>( mParams[i] );
|
||||
if ( option && option->usesRegion() )
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user