Module: nagvis Branch: master Commit: 98a236c0111c7163d285786e6686e31c99d46e71 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=98a236c0111c7163d285786e6686e31c99d46e71
Author: Lars Michelsen <[email protected]> Date: Sun Aug 2 18:06:19 2009 +0200 Fixed problem with line rendering using the new object ids --- share/nagvis/includes/js/lines.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/share/nagvis/includes/js/lines.js b/share/nagvis/includes/js/lines.js index 4ad60eb..545aed8 100755 --- a/share/nagvis/includes/js/lines.js +++ b/share/nagvis/includes/js/lines.js @@ -119,13 +119,17 @@ function drawArrow(objectId, x1, y1, x2, y2, w, colorFill, colorBorder, bLinkAre ctx = null; oCanvas = null; oLineContainer = null; - } else { + var oLineContainer = document.getElementById(objectId+'-line'); + // Fallback to old line style - var oLine = new jsGraphics(objectId+'-line'); + var oLine = new jsGraphics(document.getElementById(objectId+'-line')); oLine.setColor(colorFill); oLine.fillPolygon(xCoord, yCoord); oLine.paint(); + + oLine = null; + oLineContainer = null; } oCanvas = null; ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
