Commit 9e068cde authored by Marc Duez's avatar Marc Duez Committed by Mathieu Giraud
Browse files

graph.js : debug, line path can be empty if a clone is not present in th displayed time/points

parent 44f548e9
......@@ -382,15 +382,19 @@ Graph.prototype = {
.transition()
.duration(speed)
.attr("d", function (p) {
var x = (p.path[0][0] * self.resizeW + self.marge4)
var y = (p.path[0][1] * self.resizeH + self.marge5)
var che = ' M ' + x + ',' + y;
for (var i = 1; i < p.path.length; i++) {
x = (p.path[i][0] * self.resizeW + self.marge4)
y = (p.path[i][1] * self.resizeH + self.marge5)
che += ' L ' + x + ',' + y;
if (p.path.length != 0){
var x = (p.path[0][0] * self.resizeW + self.marge4)
var y = (p.path[0][1] * self.resizeH + self.marge5)
var che = ' M ' + x + ',' + y;
for (var i = 1; i < p.path.length; i++) {
x = (p.path[i][0] * self.resizeW + self.marge4)
y = (p.path[i][1] * self.resizeH + self.marge5)
che += ' L ' + x + ',' + y;
}
return che;
}else{
return ' M 0,' + self.resizeH + ' L ' + self.resizeW + ',' + self.resizeH;
}
return che;
})
.attr("class", function (p) {
if (!self.m.windows[p.id].active) return "graph_inactive";
......
......@@ -1102,7 +1102,7 @@ Model.prototype = {
* */
updateElem: function (list) {
if ( list.indexOf(this.normalisattion.id) != -1 ){
if ( list.indexOf(this.normalization.id) != -1 ){
this.update_normalization()
}
this.updateModel()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment