[chronojump] Fixed crash on capturing on 0,5m realHeight



commit 99031269496b4c747044b23ed3303ebcd4b2185c
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Feb 17 12:15:08 2014 +0100

    Fixed crash on capturing on 0,5m realHeight

 src/gui/encoder.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 4cbc061..3a54c88 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -1787,7 +1787,7 @@ public partial class ChronoJumpWindow
        {
                int width=encoder_capture_signal_drawingarea.Allocation.Width;
                int height=encoder_capture_signal_drawingarea.Allocation.Height;
-               double realHeight = 1000 * 2 * (int) 
encoderCaptureOptionsWin.spin_encoder_capture_curves_height_range.Value;
+               double realHeight = 1000 * 2 * 
encoderCaptureOptionsWin.spin_encoder_capture_curves_height_range.Value;
                
                Log.Write(" 00a 2 ");
                SerialPort sp = new SerialPort(port);


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