You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments