padOsd: Add one to the >1 rings

Ring leader/label SVG elements for the second ring are named *Ring2*.
We need to add one here for elements >1, this is consistent with strips.

https://bugzilla.gnome.org/show_bug.cgi?id=785358
This commit is contained in:
Carlos Garnacho 2017-08-03 21:59:26 +02:00
parent ecea0218f2
commit 82c984dd33

View File

@ -513,7 +513,7 @@ const PadDiagram = new Lang.Class({
},
getRingLabelCoords: function (number, dir) {
let numStr = number > 0 ? number.toString() : '';
let numStr = number > 0 ? (number + 1).toString() : '';
let dirStr = dir == CW ? 'CW' : 'CCW';
let labelName = 'LabelRing' + numStr + dirStr;
let leaderName = 'LeaderRing' + numStr + dirStr;