Bug report #9775

composer map item with non-white background will render with white bg when exporting to png

Added by Mathieu Pellerin - nIRV almost 11 years ago. Updated over 10 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:-
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18317

Description

A recent regression under qgis master (2.3) is causing map items' background color to render white when exporting to image irrespective of the map item background when inserted onto the composer sheet. Steps to reproduce:
1. Create a new project
2. Go to Project Properties and change the background color to a non-white value (e.g. bright pink)
3. Create a new composer
4. Insert a map item, and activate the [x] frame
5. Note the map item's background is (correctly) rendered using the project's background color
6. Export the newly created composer to an image (test.png)
7. Open the resulting image, you'll notice the map item (identifiable with the frame) rendered with a white background

If you manually change the map item background color, the subsequent exports to image will work ok. It might be a MTR-linked regression, but I'm not sure.

Associated revisions

Revision d0f40b99
Added by Nyall Dawson over 10 years ago

[composer] Correctly set background color for map items (fix #9775)

History

#1 Updated by Nyall Dawson over 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF