Bug report #10685
wrong segment size in composer scalebar left segments
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
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 |
Description
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.
Associated revisions
[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)
History
#1 Updated by Miroslav Umlauf over 10 years ago
- File print_composer_scale_02.png added
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 10 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 about 10 years ago
- Status changed from Open to Closed
Fixed in changeset d2c9ffd86963647bcfa9586aea9303ca5ff3cac1.