[Libreoffice-commits] online.git: loleaflet/src

Pranav Kant pranavk at collabora.co.uk
Mon Nov 7 12:01:44 UTC 2016


 loleaflet/src/core/LOUtil.js |    2 +-
 loleaflet/src/map/Map.js     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9f65377c424ab9316e184103e28a7ab77b2b8456
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Mon Nov 7 17:11:26 2016 +0530

    getViewIdHexColor -> getViewIdColor
    
    This doesn't return a hex value anymore, it returns a rgb
    integer.
    
    Change-Id: I2fc234d7ba09e7b750c63dd9cf93356d02707fce

diff --git a/loleaflet/src/core/LOUtil.js b/loleaflet/src/core/LOUtil.js
index ed6b718..422e65b 100644
--- a/loleaflet/src/core/LOUtil.js
+++ b/loleaflet/src/core/LOUtil.js
@@ -43,7 +43,7 @@ L.LOUtil = {
 		return spinnerInterval;
 	},
 
-	getViewIdHexColor: function(viewId) {
+	getViewIdColor: function(viewId) {
 		var color = this.darkColors[(viewId + 1) % this.darkColors.length];
 		return (color[2] | (color[1] << 8) | (color[0] << 16));
 	},
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index be634aa..46c53ee 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -157,7 +157,7 @@ L.Map = L.Evented.extend({
 
 	getViewColor: function(viewid) {
 		if (this._docLayer._docType !== 'text') {
-			return L.LOUtil.getViewIdHexColor(viewid);
+			return L.LOUtil.getViewIdColor(viewid);
 		}
 
 		return this._viewInfo[viewid].color;


More information about the Libreoffice-commits mailing list