Bug report #7993

Fields are listed twice in labelling data defined menu

Added by Nyall Dawson over 11 years ago. Updated over 11 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Labelling
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:16844

Description

I'm currently seeing all fields listed twice under the new data defined labelling buttons, in the "attribute field" submenu. Seems to be duplicated regardless of the file format - I see this with PostGIS tables and shapefiles.

I've attached a screenshot to demonstrate.

duplicates.png (271 KB) Nyall Dawson, 2013-06-03 03:35 PM

Associated revisions

Revision 0192e37f
Added by Larry Shaffer over 11 years ago

Fix #7993, fields are listed twice in labeling data defined menu

History

#1 Updated by Larry Shaffer over 11 years ago

  • Status changed from Open to Closed

#2 Updated by Nyall Dawson over 11 years ago

  • Status changed from Closed to Reopened

Larry - I'm still seeing this behaviour on current master.

#3 Updated by Nyall Dawson over 11 years ago

To narrow this down -- I'm only seeing this in the label settings pane which is part of the layer properties dialog. If I open the label settings directly via the toolbar then the fields are only listed once.

#4 Updated by Larry Shaffer over 11 years ago

Hi Nyall,

Thanks for the update. I did only test it in the standalone labeling dialog, so did not see the issue was not fixed.

The commit a29f2ba should do it. Please test.

I've cleaned up the code and made sure multiple calls to init() were clearing the field list first (they weren't before).

#5 Updated by Nyall Dawson over 11 years ago

  • Status changed from Reopened to Closed

Looks good - thanks Larry!

Also available in: Atom PDF