Bug report #18871
Matrix parameter does not respect default value
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
[processing] Correctly set default value for matrix parameters
Fixes #18871
[processing] Correctly set default value for matrix parameters
Fixes #18871
(cherry-picked from c68262da)
History
#1 Updated by Nyall Dawson over 6 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset qgis|c68262da7fa19906411bf76c26a698b9758a0c90.