Bug report #15501

Expression not being retained in rule based labelling

Added by Chris Buckmaster about 8 years ago. Updated almost 6 years ago.

Status:Closed
Priority:Normal
Assignee:Nathan Woodrow
Category:Labelling
Affected QGIS version:2.16.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:23425

Description

It appears as though when using the rule based labelling option for labelling features in QGIS (2.16), any modifications using the expression builder are not retained.

Process as follows:

Using a point dataset from PostGIS, and the rule based labelling for Labels.

My rule says ("CLASSIFICA" = 'Woodland Or Forest' AND "FONTHEIGHT" = 'Small'), with this I also have a scale range included.

When I try to change this (for example to “FONTHEIGHT” = ‘Medium’), I click on the browse button next to ‘Test’, I then manually alter the text within my expression from ‘Small’ to ‘Medium’.

I OK this – back at the ‘Edit rule window’, I do see that the text has changed to ‘Medium’, I then click OK but back at my rule based labelling screen the text still says ‘Small’.

If I decide to change the expression from the ‘Edit rule’ window and not open the expression builder, it does retain the change, so there looks to be an issue (from my set up anyway) where it is not storing any changes within the expression window.

History

#1 Updated by Saber Razmjooei about 8 years ago

  • Category set to Labelling

#2 Updated by Chris Buckmaster about 8 years ago

  • Assignee set to Nathan Woodrow

#3 Updated by Giovanni Manghi over 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#4 Updated by Nyall Dawson almost 6 years ago

  • Description updated (diff)
  • Status changed from Open to Feedback

Is this still an issue in 3.4?

#5 Updated by Chris Buckmaster almost 6 years ago

Nyall Dawson wrote:

Is this still an issue in 3.4?

I can confirm this issue no longer occurs in 3.4 (testing with 3.4.4).

#6 Updated by Nyall Dawson almost 6 years ago

  • Resolution set to fixed/implemented
  • Status changed from Feedback to Closed

Also available in: Atom PDF