[gnome-subtitles] Fix output of deciseconds (used in SubCreator1), based on a patch from Pawel57



commit e4b6687c2fcf3c21874595c515f6ca07760876d1
Author: Pedro Castro <pedro gnomesubtitles org>
Date:   Sun Sep 11 22:18:50 2011 +0100

    Fix output of deciseconds (used in SubCreator1), based on a patch from Pawel57

 src/SubLib/IO/Output/SubtitleOutput.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/SubLib/IO/Output/SubtitleOutput.cs b/src/SubLib/IO/Output/SubtitleOutput.cs
index 28b1678..5ceb07a 100644
--- a/src/SubLib/IO/Output/SubtitleOutput.cs
+++ b/src/SubLib/IO/Output/SubtitleOutput.cs
@@ -107,7 +107,7 @@ internal class SubtitleOutput {
 				return FormatedField(startSeconds, 2, match);
 			case "StartDeciseconds":
 				int startDeciseconds = DivideAndRound(subtitle.Times.Start.Milliseconds, 100);
-				return FormatedField(startDeciseconds, 2, match);
+				return FormatedField(startDeciseconds, 1, match);
 			case "StartTotalDeciseconds":
 				int startTotalDeciseconds = DivideAndRound((int)subtitle.Times.Start.TotalMilliseconds, 100);
 				return startTotalDeciseconds.ToString();
@@ -150,7 +150,7 @@ internal class SubtitleOutput {
 				return FormatedField(endSeconds, 2, match);
 			case "EndDeciseconds":
 				int endDeciseconds = DivideAndRound(subtitle.Times.End.Milliseconds, 100);
-				return FormatedField(endDeciseconds, 2, match);
+				return FormatedField(endDeciseconds, 1, match);
 			case "EndTotalDeciseconds":
 				int endTotalDeciseconds = DivideAndRound((int)subtitle.Times.End.TotalMilliseconds, 100);
 				return endTotalDeciseconds.ToString();



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