Bug report #10685

wrong segment size in composer scalebar left segments

Added by Miroslav Umlauf over 8 years ago. Updated almost 8 years ago.

Category:Map Composer/Printing
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 #:19083


Left segments in print composer/scalebar have wrong segment size. Unfortunately quite visibly wrong. Tried from 2 to 8 segments and always with error.

QGIS 2.2 and 2.3.

print_composer_scale.png - wrong segment size (3.2 KB) Miroslav Umlauf, 2014-06-23 09:35 PM

print_composer_scale_02.png - scalebars comaprison (9.75 KB) Miroslav Umlauf, 2014-06-23 10:03 PM

Associated revisions

Revision d2c9ffd8
Added by Nyall Dawson almost 8 years ago

[composer] Fix incorrect calculation of scale for tick scale bars

QPainter::drawLine(x1,y1,x2,y2) takes int values, so coordinates
were being rounded to the nearest mm. Consequently scale was way
off. Also fixes horizontal line for tick styles being drawn
incorrectly with multiple overlapping segments. (fix #10685)


#1 Updated by Miroslav Umlauf over 8 years ago

Update: the single box and double box are right, the error is connected to Ticks style and is affecting whole scalebar

#2 Updated by Giovanni Manghi over 8 years ago

  • Affected QGIS version changed from 2.2.0 to master
  • Target version set to Future Release - High Priority

#3 Updated by Nyall Dawson almost 8 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF