[gnome-shell/gnome-3-24] padOsd: Add one to the >1 rings



commit 82c984dd3302b831ee93777a865c08801f6ccab6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Aug 3 21:59:26 2017 +0200

    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

 js/ui/padOsd.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js
index fc0ad45..9b58a77 100644
--- a/js/ui/padOsd.js
+++ b/js/ui/padOsd.js
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]