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

Data defined label does not works anymore in combinaison with rule based labeling #27801

Closed
qgib opened this issue Sep 28, 2018 · 3 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Labeling Related to QGIS map labeling Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Sep 28, 2018

Author Name: Dominique Lyszczarz (@domlysz)
Original Redmine Issue: 19979
Affected QGIS version: 3.2.3
Redmine category:labelling
Assignee: Nyall Dawson


Please find in attachement a simple project that illustrate the issue : trying moving a label does not works.

The issue appears since 3.2.2 or 3.2.3 (as I tested it works correctly on 3.2.0 and fails on 3.2.3).

After more investigation, I could notice that a project with this kind of setup saved with 3.2.0 also works correctly on 3.2.3 but will fails again if the rules are editing. Comparing qgs files between a working and non working reveals that non working file missing rule uuid :

working qgs file:
@
@

non working qgs file:
@
@

Adding an uuid make the labels movable again.

Investigate the commits, it seems b6901e2 is the cause of the regression : uuid creation was removed from qgsrulebasedlabeling.cpp (line 68)
b6901e2


@qgib
Copy link
Contributor Author

qgib commented Oct 1, 2018

Author Name: Nyall Dawson (@nyalldawson)


  • assigned_to_id was configured as Nyall Dawson
  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented Oct 1, 2018

Author Name: Nyall Dawson (@nyalldawson)


Applied in changeset 0e2ceb9.


  • done_ratio was changed from 0 to 100
  • status_id was changed from In Progress to Closed

@qgib qgib closed this as completed Oct 1, 2018
@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2019

Author Name: Decio Yokota (Decio Yokota)


Moving labels doesn't seem to work again in version 3.6.2. This is probably true in earlier versions as seen in: https://gis.stackexchange.com/questions/290780/move-label-not-working/321272#321272

Manually clicking in data defined X and Y coordinates and storing them on project makes it work.

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Labeling Related to QGIS map labeling Regression Something which used to work, but doesn't anymore labels May 25, 2019
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! High Priority Labeling Related to QGIS map labeling Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant