mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	[processing] fix parsing of selection options in scripts
This commit is contained in:
		
							parent
							
								
									3c8cfd0be0
								
							
						
					
					
						commit
						fbedfae8ef
					
				@ -133,7 +133,7 @@ class ScriptAlgorithm(GeoAlgorithm):
 | 
			
		||||
            param = ParameterMultipleInput(tokens[0], desc, ParameterMultipleInput.TYPE_VECTOR_ANY)
 | 
			
		||||
            param.optional = False
 | 
			
		||||
        elif tokens[1].lower().strip().startswith("selection"):
 | 
			
		||||
            options = tokens[1].strip()[len("selection"):].split(";")
 | 
			
		||||
            options = tokens[1].strip()[len("selection "):].split(";")
 | 
			
		||||
            param = ParameterSelection(tokens[0],  desc, options);
 | 
			
		||||
        elif tokens[1].lower().strip().startswith("boolean"):
 | 
			
		||||
            default = tokens[1].strip()[len("boolean")+1:]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user