Bug report #21702

Calculated x position for textbox returns 10000000

Added by Morten Sickel about 5 years ago. Updated about 5 years ago.

Category:Map Composer/Printing
Affected QGIS version:3.6.0 Regression?:No
Operating System:Windows 10 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:29518


I am generating an atlas. For the various sheets, I need to have a textbox in different places - either the left or right lower corner of the map. So, on the layer that defines the atlas sheets, I have added a field legx to contain the xvalue for the textbox position. When I try to use this, it works for a little while, then the textbox disappears from the map. If I look at Position and size, the x-value has been set to 10000000 and is stuck there. Even if I deactiate the calculation on the field or makes a formula that just return a number, the position stays at 10000000. If I manually changes it, it will jump back to 10e6 as soon as I go to another field.
Also, no matter what I type in, I get it set into an expression "coalesce(scale_linear(10.0, 10, 200, 1, 10), 0)" (This is the case when I set the initial expression to 10.0) but with that mapping applied, I cannot see why I do not get 1 returned.

I did fiddle a bit with the tranformation values, but I cannot remember if the problem turned up before or after this.

Settings.PNG - These are the Input settings, the formula is just returning 10 (106 KB) Morten Sickel, 2019-03-29 02:47 PM

Result.PNG - That results in 100000000 that cannot be changed (200 KB) Morten Sickel, 2019-03-29 02:48 PM


#1 Updated by Morten Sickel about 5 years ago

  • Status changed from Open to Closed

Upgraded to 3.6.1 - now this is working perfectly

Also available in: Atom PDF