Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the Assistant for Data Defined Colors incorrectly shows 'custom ramp' instead of the correct colour ramp name #48889

Closed
1 of 2 tasks
nialkay opened this issue Jun 6, 2022 · 0 comments · Fixed by #56057
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@nialkay
Copy link

nialkay commented Jun 6, 2022

What is the bug or the crash?

When using the Assistant for some type of data defined color in the Symbology editor, the user can pick a particular color ramp for a field of interest (e.g. 'Reds' or 'Turbo'). While the colors are correctly shown in the vector layer, the expression the Assistant produces is not correct. Instead of showing the name of the color ramp one has picked, it shows the words 'custom ramp'. This is not a big problem, but interferes with the usability of data defined overrides (and a Plugin I am working on).

Steps to reproduce the issue

  1. Open vector layer Properties
  2. Go to Symbology
  3. Click 'Simple Line' (or equivalent for other type of layer)
  4. Click the data defined Assistant for some type of color option
  5. Select the inputs and any color ramp, and OK
  6. Click Edit on the data defined field, and note that the ramp name is not correct.

Versions

Tested in 3.20, 3.24.

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@nialkay nialkay added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jun 6, 2022
@Pedro-Murteira Pedro-Murteira added the Symbology Related to vector layer symbology or renderers label Jun 7, 2022
alexbruy added a commit to alexbruy/QGIS that referenced this issue Jan 29, 2024
alexbruy added a commit to alexbruy/QGIS that referenced this issue Jan 30, 2024
alexbruy added a commit that referenced this issue Jan 30, 2024
pass color ramp name to the color ramp transformer to generate correct expression (fix #48889)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
2 participants