]> granicus.if.org Git - handbrake/commitdiff
WinGui: End Point can not be greater than Start and vice versa for the chapters dropd...
authorsr55 <sr55.hb@outlook.com>
Sat, 25 May 2013 12:09:50 +0000 (12:09 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 25 May 2013 12:09:50 +0000 (12:09 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5511 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs

index f3945fb7ab9ef01c975f5b6413c8f41aa0340621..02a2e88ebd97c874b25dfd32e137a7b3862012ed 100644 (file)
@@ -760,6 +760,11 @@ namespace HandBrakeWPF.ViewModels
                         this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SourceName);\r
                     }\r
                 }\r
+\r
+                if (this.SelectedStartPoint > this.SelectedEndPoint)\r
+                {\r
+                    this.SelectedEndPoint = this.SelectedStartPoint;\r
+                }\r
             }\r
         }\r
 \r
@@ -783,6 +788,11 @@ namespace HandBrakeWPF.ViewModels
                 {\r
                     this.Destination = AutoNameHelper.AutoName(this.CurrentTask, this.SourceName);\r
                 }\r
+\r
+                if (this.SelectedStartPoint > this.SelectedEndPoint)\r
+                {\r
+                    this.SelectedStartPoint = this.SelectedEndPoint;\r
+                }\r
             }\r
         }\r
 \r