qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.49k stars 2.99k forks source link

Label mask disables layer transperency #58230

Open est987 opened 2 months ago

est987 commented 2 months ago

What is the bug or the crash?

When Label Mask enabled, "Layer Rendering" opacity shows up in Layout, but upon export fails: Layout 1

If opacity is set through symbol setting or color setting - exported properly: Layout 2

Steps to reproduce the issue

  1. Create a simple polygon with "Layer Rendering" opacity set to 50%, with label on edge.
  2. Enable mask on label and layer setting.
  3. Create Layout and export to JPEG/PDF

Example zipped project saved as GPKG: MaskTest.zip

Versions

QGIS 3.34.8 - LTR Also tried on QGIS 3.38.1 to no avail, even after running "QgsSettings().setValue('map/mask-backend', 'geometry')" in python console

Supported QGIS version

New profile

Additional context

No response

nyalldawson commented 2 months ago

Ah, this relates to https://github.com/qgis/QGIS/pull/51995, a fix I never got a chance to finish 😭