Module: nagvis Branch: nagvis-1.4 Commit: 22158e4bc0602faf6ded232fcb3d4978f7059cc6 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=22158e4bc0602faf6ded232fcb3d4978f7059cc6
Author: Lars Michelsen <[email protected]> Date: Sun Aug 2 18:06:19 2009 +0200 Fixed problem with line rendering using the new object ids --- nagvis/nagvis/includes/js/lines.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nagvis/nagvis/includes/js/lines.js b/nagvis/nagvis/includes/js/lines.js index 4ad60eb..545aed8 100644 --- a/nagvis/nagvis/includes/js/lines.js +++ b/nagvis/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
