Bug report #21171

Arrow line goes beyond arrowhead in map composer

Added by nicolas h over 2 years ago. Updated over 2 years ago.

Category:Map Composer/Printing
Affected QGIS version:3.4.4 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:28989


When using the arrow item in the map composer, the line of the arrow goes beyond the arrowhead (see attached screenshot).
It worked well with QGIS 2.x.
As I don't want the arrowhead to be round, I use these parameters:
  • Arrow outline width: 0 mm
  • Arrow head width: 3 mm

qgis_arrow_bug.png (31.7 KB) nicolas h, 2019-02-05 08:32 AM


#1 Updated by Giovanni Manghi over 2 years ago

  • Regression? changed from No to Yes
  • Priority changed from Normal to High

#2 Updated by Marco Hugentobler over 2 years ago

QGIS 2.18 was moving the end arrow by half the arrow width. It seems to me we can just use this solution for QGIS3 too. https://github.com/qgis/QGIS/pull/9129 provides a pull request.

#3 Updated by Marco Hugentobler over 2 years ago

  • Status changed from Open to Closed

Fixed in master branch (https://github.com/qgis/QGIS/pull/9129). Change will be backported to 3.4 branch

Also available in: Atom PDF