Merge lp:~seb128/ubuntu-system-settings/battery-rendering-glitches into lp:ubuntu-system-settings

Proposed by Sebastien Bacher on 2015-06-03
Status: Merged
Approved by: Ken VanDine on 2015-06-04
Approved revision: 1433
Merged at revision: 1434
Proposed branch: lp:~seb128/ubuntu-system-settings/battery-rendering-glitches
Merge into: lp:ubuntu-system-settings
Diff against target: 13 lines (+3/-0)
1 file modified
plugins/battery/PageComponent.qml (+3/-0)
To merge this branch: bzr merge lp:~seb128/ubuntu-system-settings/battery-rendering-glitches
Reviewer Review Type Date Requested Status
Ken VanDine 2015-06-03 Approve on 2015-06-04
PS Jenkins bot continuous-integration Approve on 2015-06-04
Review via email: mp+260991@code.launchpad.net

Commit Message

[battery] use round linejoin style to workaround rendering glitches

Description of the Change

[battery] use round linejoin style to workaround rendering glitches

To post a comment you must log in.
Ken VanDine (ken-vandine) wrote :

Looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/battery/PageComponent.qml'
2--- plugins/battery/PageComponent.qml 2015-05-27 09:22:41 +0000
3+++ plugins/battery/PageComponent.qml 2015-06-03 17:53:14 +0000
4@@ -226,6 +226,9 @@
5
6 ctx.lineWidth = units.dp(2)
7
8+ /* Needed to avoid rendering glitches with point with the same x value
9+ (#1461624/QTBUG-34339) */
10+ ctx.lineJoin = "round"
11
12 ctx.translate(0, height)
13 // Invert the y axis so we draw from the bottom left

Subscribers

People subscribed via source and target branches