# HG changeset patch # User ib # Date 1350563938 0 # Node ID bbcd42f7f0afc647af98bd1785c02fc6448d688f # Parent ade40c1d69b8ec182436145f67d83635d45f8004 Get rid of unnecessary use of variable dvd_chapter in Win32 GUI. Use GUI's guiInfo.Chapter instead. diff -r ade40c1d69b8 -r bbcd42f7f0af gui/win32/dialogs.c --- 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: