[longomatch] Fix dtrawing in frames with width < 500



commit c9b8d91a6b0c1f57414b48c94ae6e5bac1b07d6e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Apr 1 21:53:46 2015 +0200

    Fix dtrawing in frames with width < 500
    
    The division was not casted to double and was returning 0
    for the scale factor

 LongoMatch.GUI/Gui/Dialog/DrawingTool.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
index 2bcb1c0..90ccdc8 100644
--- a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
@@ -141,7 +141,7 @@ namespace LongoMatch.Gui.Dialog
                        this.play = play;
                        this.drawing = drawing;
                        this.project = project;
-                       scaleFactor = frame.Width / 500;
+                       scaleFactor = (double)frame.Width / 500;
                        blackboard.Background = frame;
                        savetoprojectbutton.Visible = true;
                        blackboard.Drawing = drawing;
@@ -151,7 +151,7 @@ namespace LongoMatch.Gui.Dialog
                {
                        this.project = project;
                        drawing = new FrameDrawing ();
-                       scaleFactor = frame.Width / 500;
+                       scaleFactor = (double)frame.Width / 500;
                        blackboard.Background = frame;
                        blackboard.Drawing = drawing;
                        savetoprojectbutton.Visible = false;


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