Bug report #10457

Print Composer: Line cap issue for arrows between 2.4 and 2.6

Added by Andreas Neumann over 10 years ago. Updated over 10 years ago.

Status:Closed
Priority:High
Assignee:Nyall Dawson
Category:Map Composer/Printing
Affected QGIS version:2.2.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 #:18869

Description

It seems that between 2.4 and current master the behavior of line-caps changed for arrows (lines).

You can best see this when creating a thick line (e.g. 3mm) in QGIS 2.4 and then opening the same project in current master. You will see that the master version renders the lines longer (including a square line cap) while 2.4 applied a butt line cap. This issue is illustrated in the uploaded screenshot. On the left there is 2.4 on the right there is current master.

Could the behavior between 2.4 and current master be aligned?

Thanks a lot!

print_composer_linecap_issue_with_arrows.png (412 KB) Andreas Neumann, 2014-06-04 06:23 AM

qgislinetest.qgs - QGIS line test containing one layout. (5.09 KB) Andreas Neumann, 2014-06-08 06:57 AM

qgislinetest_screenshots.png (292 KB) Andreas Neumann, 2014-06-08 07:01 AM

Associated revisions

Revision 80555d0f
Added by Nyall Dawson over 10 years ago

[composer] Use the old line placement algorithm for arrows created in versions prior to 2.4 (fix #10457)

History

#1 Updated by Nyall Dawson over 10 years ago

  • Status changed from Open to Feedback

Can you please attach a sample project with a screenshot how it rendered in 2.2 so I can test?

#2 Updated by Andreas Neumann over 10 years ago

Attached is a test project file. If you compare the width of the arrows with the rectangle you can easily see the difference.

It was created in QGIS Dufour. QGIS Valmiera still opens it keeping the proportion. In QGIS master the lines appear to be longer.

I like the behavior of QGIS master better and it is more intuitive but I wonder if a migration function could help keep the length.

I have a lot of projects with a lot of layouts and would have to go through each project and layout to change the behavior. Would be a lot of work for me having to adjust every single project.

Thank you again for having a look at this issue.

#3 Updated by Andreas Neumann over 10 years ago

Here is the screenshot:

Left: rendering in QGIS Dufour (Valmiera behaves the same)
Right: rendering in QGIS master

#4 Updated by Nyall Dawson over 10 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF