[ease/themes] [editor] Fix error with 0 msec transitions



commit 68bdd14acc64dd05203f1f7433f0477248175958
Author: Nate Stedman <natesm gmail com>
Date:   Thu Jul 22 14:17:18 2010 -0400

    [editor] Fix error with 0 msec transitions
    
    - Clutter errors would occur for any transitions
      with a length of 0
    - If the user increased the duration, animation
      previews in the inspector would not resume
    - This commit fixes both issues.

 src/ease-transition-pane.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ease-transition-pane.vala b/src/ease-transition-pane.vala
index 1306f25..b38417c 100644
--- a/src/ease-transition-pane.vala
+++ b/src/ease-transition-pane.vala
@@ -217,6 +217,12 @@ public class Ease.TransitionPane : InspectorPane
 	
 	private void animate_preview_start()
 	{
+		if (slide.transition_msecs == 0)
+		{
+			animate_preview();
+			return;
+		}
+		
 		new_slide.opacity = 255;
 		
 		current_slide.transition(new_slide, preview_group);



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