Bug report #18871

Matrix parameter does not respect default value

Added by Alexander Bruy about 6 years ago. Updated about 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/Core
Affected QGIS version:3.1(master) Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26703

Description

When matrix parameter defined with some default value, this value does not apply. For example,

self.addParameter(QgsProcessingParameterMatrix(self.CLASSES, 'Classes', 2, True, ['Min', 'Max'], [['0', '3'], ['3', '8']]))

But in the algorithm dialog we still have empty table.

Associated revisions

Revision c68262da
Added by Nyall Dawson about 6 years ago

[processing] Correctly set default value for matrix parameters

Fixes #18871

Revision 0c6a59ec
Added by Nyall Dawson about 6 years ago

[processing] Correctly set default value for matrix parameters

Fixes #18871

(cherry-picked from c68262da)

History

#1 Updated by Nyall Dawson about 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF