Bug report #19979
Data defined label does not works anymore in combinaison with rule based labeling
|Affected QGIS version:||3.2.3||Regression?:||Yes|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||27801|
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)
#3 Updated by Decio Yokota over 1 year ago
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.