changeset 35160:bbcd42f7f0af

Get rid of unnecessary use of variable dvd_chapter in Win32 GUI. Use GUI's guiInfo.Chapter instead.
author ib
date Thu, 18 Oct 2012 12:38:58 +0000
parents ade40c1d69b8
children 86790eb037fa
files gui/win32/dialogs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/dialogs.c	Thu Oct 18 12:17:58 2012 +0000
+++ b/gui/win32/dialogs.c	Thu Oct 18 12:38:58 2012 +0000
@@ -834,7 +834,7 @@
                 sprintf(&chapters[j], "%d", guiInfo.Chapters - j);
                 SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_INSERTSTRING, 0, (LPARAM) &chapters[j]);
             }
-            SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_SETCURSEL, dvd_chapter, 0);
+            SendDlgItemMessage(hwnd, ID_CHAPTERSEL, CB_SETCURSEL, guiInfo.Chapter - 1, 0);
 
             break;
         case WM_COMMAND: