Skip to content

Regression with decimal values and negative number in color gradient in the layer style panel #65566

Description

@chau-intl

What is the bug or the crash?

This is about the input fields related to the color gradient of a raster style when using the Layer Style panel:

Image

When editing the two fields the decimal point is removed immediately after inputting it. It doesn't matter if I insert a . or a ,. I cannot add a - to create a negative value.

The regression does NOT affect the fields when accessing them through Layer Properties/Symbology.

Steps to reproduce the issue

  1. Add a raster to QGIS
  2. Press F7 to open the layer style panel
  3. Make sure the Render type is Singleband gray
  4. Try to change either the Min or the Max field by entering a decimal value or a negative number
  5. Verify that the ., , or - is immediately removed when inputting it

Versions

It affects 3.44.8, 4.0.0 and 4.1 (0a48c65).

Supported QGIS version

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

New profile

No Duplicate of the Issue

  • I have verified that there are no existing issues raised related to my problem.

Additional context

No response

Metadata

Metadata

Assignees

Labels

BugEither a bug report, or a bug fix. Let's hope for the latter!GUI/UXRelated to QGIS application GUI or User ExperienceLocalizationIssues with language support in numbers representation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions