Module: nagvis
Branch: master
Commit: ef460ad03671b0d922bbb4d043be25775b104fae
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=ef460ad03671b0d922bbb4d043be25775b104fae

Author: Lars Michelsen <[email protected]>
Date:   Thu Sep 30 17:11:11 2010 +0200

#358 Fixing javascript errors when label is empty

---

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

diff --git a/share/frontend/nagvis-js/js/lines.js 
b/share/frontend/nagvis-js/js/lines.js
index caaeac5..da109d8 100644
--- a/share/frontend/nagvis-js/js/lines.js
+++ b/share/frontend/nagvis-js/js/lines.js
@@ -156,7 +156,7 @@ function drawLinkArea(objectId, lx, ly, z) {
 }
 
 function getLabelShift(str) {
-       if(str.length > 0)
+       if(str && str.length > 0)
                return (str.length / 2) * 9;
        else
                return 10


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to