[chronojump] Fixed capture without curves



commit 428b76f3a46f8374192e1f154ca5e47d0a3ac4e8
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue May 12 13:22:31 2015 +0200

    Fixed capture without curves

 encoder/graph.R |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/encoder/graph.R b/encoder/graph.R
index c7e804e..894b1a8 100644
--- a/encoder/graph.R
+++ b/encoder/graph.R
@@ -179,9 +179,9 @@ findCurvesNew <- function(displacement, eccon, min_height, draw, title)
        startCurrent = NULL
        endCurrent = NULL
 
-       startStored = NULL
-       endStored= NULL
-       startHStored = NULL
+       startStored = 0
+       endStored= 0
+       startHStored = 0
        row = 1
 
        count = 1
@@ -282,7 +282,7 @@ findCurvesNew <- function(displacement, eccon, min_height, draw, title)
        }
        
        #if eccon it's 'ec' and last row it's 'e', delete it
-       if(count > 1)
+       if(row > 1)
        {
                startStoredLast = startStored[length(startStored)]
                endStoredLast = endStored[length(endStored)]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]