Module: nagvis Branch: master Commit: ab6e8fcc277728918cd8bdaf2623fbb429f7b524 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=ab6e8fcc277728918cd8bdaf2623fbb429f7b524
Author: LaMi <[email protected]> Date: Wed Apr 28 20:05:12 2010 +0200 Only calculate abs from rel coords when label is set --- .../frontend/nagvis-js/js/NagVisStatefulObject.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js b/share/frontend/nagvis-js/js/NagVisStatefulObject.js index 0569c27..de2cf8a 100644 --- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js +++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js @@ -694,10 +694,10 @@ var NagVisStatefulObject = NagVisObject.extend({ var oLabelDiv; // If there is a presign it should be relative to the objects x/y - if(this.conf.label_x.toString().match(/^(?:\+|\-)/)) { + if(this.conf.label_x && this.conf.label_x.toString().match(/^(?:\+|\-)/)) { this.conf.label_x = parseFloat(this.conf.x) + parseFloat(this.conf.label_x); } - if(this.conf.label_y.toString().match(/^(?:\+|\-)/)) { + if(this.conf.label_y && this.conf.label_y.toString().match(/^(?:\+|\-)/)) { this.conf.label_y = parseFloat(this.conf.y) + parseFloat(this.conf.label_y); } ------------------------------------------------------------------------------ _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
