QGIS icon indicating copy to clipboard operation
QGIS copied to clipboard

Label rubberband is not displayed correctly if horizontal alignment is set when rotating label

Open Joonalai opened this issue 10 months ago • 1 comments

What is the bug or the crash?

When using other than 'left' (default) horizontal alignment, the rubberband of the label is not displayed correctly when the label is being rotated as can be seen in GIF below: rotation_bug

The rotation is still set correctly according to set degrees.

Steps to reproduce the issue

  1. Create point layer with rotation (decimal) field
  2. Properties -> Label -> Single labels
  3. For placement options:
    • For Coordinate X expression: @x
    • For Coordinate Y expression: @y
    • For Horizontal Alignment: 'center' or 'right'
    • For Rotation field: rotation
  4. Create point with some rotation and start rotating it with the "Rotate a label" tool

Versions

QGIS version 3.36.1-Maidenhead QGIS code branch Release 3.36
Qt version 5.15.13
Python version 3.11.8
GDAL/OGR version 3.8.4
PROJ version 9.4.0
EPSG Registry database version v11.004 (2024-02-24)
GEOS version 3.12.0-CAPI-1.18.0
SQLite version 3.45.2
PDAL version 2.7.1
PostgreSQL client version 16.2
SpatiaLite version 5.1.0
QWT version 6.2.0
QScintilla2 version 2.14.1
OS version EndeavourOS
       
Active Python plugins
db_manager 0.1.20
MetaSearch 0.3.6
processing 2.12.99
grassprovider 2.12.99
QGIS version 3.36.1-Maidenhead QGIS code branch [Release 3.36](https://github.com/qgis/QGIS/tree/release-3_36) Qt version 5.15.13 Python version 3.11.8 GDAL/OGR version 3.8.4 PROJ version 9.4.0 EPSG Registry database version v11.004 (2024-02-24) GEOS version 3.12.0-CAPI-1.18.0 SQLite version 3.45.2 PDAL version 2.7.1 PostgreSQL client version 16.2 SpatiaLite version 5.1.0 QWT version 6.2.0 QScintilla2 version 2.14.1 OS version EndeavourOS

Active Python plugins db_manager 0.1.20 MetaSearch 0.3.6 processing 2.12.99 grassprovider 2.12.99

Supported QGIS version

  • [X] I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

Joonalai avatar Apr 18 '24 11:04 Joonalai

This issue also occurs in 3.34.3-Prizren

rnousia avatar Apr 19 '24 08:04 rnousia