Author:   Lars Michelsen <[email protected]>
Date:     Wed Feb 15 12:27:29 2012 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Wed Feb 15 12:27:29 2012 +0100

better error handling during coord parsing

---

 ChangeLog                             |    1 +
 share/frontend/nagvis-js/js/nagvis.js |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 60bcb7e..06ba7df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@ Core
 
 Frontend
   * Weathermap line color definitions support usage values above 100% and 
below 0%
+  * Better error handling during coord parsing
 
 1.6.3
 Core
diff --git a/share/frontend/nagvis-js/js/nagvis.js 
b/share/frontend/nagvis-js/js/nagvis.js
index 4a5e471..898897e 100644
--- a/share/frontend/nagvis-js/js/nagvis.js
+++ b/share/frontend/nagvis-js/js/nagvis.js
@@ -1075,7 +1075,7 @@ function pxToInt(v) {
 }
 
 function isRelativeCoord(v) {
-    return (!isInt(v) && !isFloat(v)) || v.length === 6;
+    return isset(v) && ((!isInt(v) && !isFloat(v)) || v.length === 6);
 }
 
 function getKeys(o) {


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to