Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix applying styles from QML files with missing colorramp node
When applying a style file with a colorrampshader node but without a colorramp node, the actual color values of the items of the ramp are overwritten by the default ramp (currently 'Spectral'). Files with not colorramp node happened to be created by earlier QGIS versions - at least with 2.10. This is because the default ramp is applied after populating the color ramp item list. Applying a color ramp emits a colorRampChanged() signal. This signal causes new colors from the ramp applied to the items, overwriting the already set ones. This is not desired. Fix by populating the item list after applying the color ramp.
- Loading branch information