Bug report #11006

wrong size of item in print composer legend when high values of map unit are used

Added by matteo ghetta almost 10 years ago. Updated almost 10 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Affected QGIS version:2.4.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19348

Description

The legend in the print composer is over-sized when high values (in map unit) are used in styling a layer.
In attach a project with a point layer, categorization style used with 200 as map unit value and the related print layout with the wrong legend size.

project.zip (48 KB) matteo ghetta, 2014-08-05 12:18 AM

Couverture.zip (911 KB) Gilles Turgeon, 2014-08-06 07:46 AM

Associated revisions

Revision d994e0a1
Added by Martin Dobias almost 10 years ago

Fix #11006 (wrong size of symbols in print composer legend if map units are used)

History

#1 Updated by Giovanni Manghi almost 10 years ago

  • Status changed from Open to Feedback

likely a duplicate or another aspect of #10546

#2 Updated by matteo ghetta almost 10 years ago

IMHO another aspect more then a duplicate

#3 Updated by Gilles Turgeon almost 10 years ago

I have the same problem. Here my project.

It's seem that the composer dont take map units or scale in consideration when drawing the legend.

#4 Updated by Gilles Turgeon almost 10 years ago

Sorry, forget to include project in the last message.

#5 Updated by Martin Dobias almost 10 years ago

  • Status changed from Feedback to Open

The fix for the problem is in legend-refactoring-part2 branch:
https://github.com/wonder-sk/QGIS/commit/8bc2f8a96b4a36d26a3c75b53246d267ca64bd3c

#6 Updated by aperi2007 - almost 10 years ago

I test the patch, retrieving the qgis from wonder repo and compiling it on a debian machine.
It seem dont resolve it.

The composer still show the legend too huge, due to the mapunit setting.
It is showed from the "prova" compose available in the project available in the ticket.

Opening it is , I see still a too huge symbols.

A.

#7 Updated by Martin Dobias almost 10 years ago

Symbols in the "prova" project are huge if the legend is not connected to any composer map (because then it is assumed that 1 map unit = 1 mm). Create a map item and associate legend item with it - the legend will show the symbols with the same size as in the map.

#8 Updated by Martin Dobias almost 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF