Author:   Lars Michelsen <[email protected]>
Date:     Mon Jul  1 12:18:36 2013 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Mon Jul  1 12:18:36 2013 +0200

FIX: Rendering lines on zoomed automaps correctly

---

 ChangeLog                                          |    1 +
 share/frontend/nagvis-js/js/NagVisLine.js          |    2 ++
 .../frontend/nagvis-js/js/NagVisStatefulObject.js  |    2 ++
 3 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ddf127c..71c27e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@ Frontend:
 Automap:
   * Labels have now a white background to improve the text readability
   * Labels should not overlap on automaps with many hosts anymore
+  * FIX: Rendering lines on zoomed automaps correctly
 
 1.7.9
 Core:
diff --git a/share/frontend/nagvis-js/js/NagVisLine.js 
b/share/frontend/nagvis-js/js/NagVisLine.js
index ce8661a..ea0017c 100644
--- a/share/frontend/nagvis-js/js/NagVisLine.js
+++ b/share/frontend/nagvis-js/js/NagVisLine.js
@@ -111,6 +111,8 @@ var NagVisLine = NagVisStatelessObject.extend({
         var y = this.parseCoords(this.conf.y, 'y');
 
         var width = addZoomFactor(this.conf.line_width);
+        if(width <= 0)
+            width = 1; // minimal width for lines
 
         var colorFill = this.conf.line_color;
         var colorBorder = this.conf.line_color_border;
diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js 
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index f5e44ad..0618582 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -468,6 +468,8 @@ var NagVisStatefulObject = NagVisObject.extend({
         var y = this.parseCoords(this.conf.y, 'y');
 
         var width = addZoomFactor(this.conf.line_width);
+        if(width <= 0)
+            width = 1; // minimal width for lines
 
         var colorFill   = '';
         var colorFill2  = '';


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to