[longomatch] Fix dtrawing in frames with width < 500
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix dtrawing in frames with width < 500
- Date: Wed, 1 Apr 2015 20:39:42 +0000 (UTC)
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]