[gnome-subtitles] FIx search operator for the first subtitle



commit da2702e9a6bf4fd346dd3f4128f2d09ffdf52a45
Author: Pedro Castro <mail pedrocastro org>
Date:   Fri Apr 22 13:20:11 2011 +0100

    FIx search operator for the first subtitle

 src/SubLib/Core/Search/SearchOperator.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/SubLib/Core/Search/SearchOperator.cs b/src/SubLib/Core/Search/SearchOperator.cs
index b8e61c4..5c7c7dd 100644
--- a/src/SubLib/Core/Search/SearchOperator.cs
+++ b/src/SubLib/Core/Search/SearchOperator.cs
@@ -1,6 +1,6 @@
 /*
  * This file is part of SubLib.
- * Copyright (C) 2006-2010 Pedro Castro
+ * Copyright (C) 2006-2011 Pedro Castro
  *
  * SubLib is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -124,7 +124,7 @@ public class SearchOperator {
 			return -1;
 
 		/* Check if before the first subtitle */
-		if (time < collection[0].Times.Start.Seconds)
+		if (time < collection[0].Times.Start.TotalSeconds)
 			return 0;
 
 		/* Iterate subtitles two by two - the last subtitle is handled in pair and individually afterwards */



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