From fbd0b47ff0b1b04c67312a91588cc3617e3c863b Mon Sep 17 00:00:00 2001 From: gv5470 Date: Sun, 21 Jan 2018 11:10:38 +0100 Subject: Fix wxWidgets assertion failed when backing up/restoring volume header (closes #100) --- src/Main/GraphicUserInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Main') diff --git a/src/Main/GraphicUserInterface.cpp b/src/Main/GraphicUserInterface.cpp index aad79d78..2a3b2cdf 100755 --- a/src/Main/GraphicUserInterface.cpp +++ b/src/Main/GraphicUserInterface.cpp @@ -219,7 +219,7 @@ namespace VeraCrypt wxSingleChoiceDialog choiceDialog (parent, LangString["DOES_VOLUME_CONTAIN_HIDDEN"], Application::GetName(), choices); choiceDialog.SetSize (wxSize (Gui->GetCharWidth (&choiceDialog) * 60, -1)); - choiceDialog.SetSelection (-1); + choiceDialog.SetSelection (0); if (choiceDialog.ShowModal() != wxID_OK) return; @@ -1324,7 +1324,7 @@ namespace VeraCrypt wxSingleChoiceDialog choiceDialog (parent, LangString["HEADER_RESTORE_EXTERNAL_INTERNAL"], Application::GetName(), choices); choiceDialog.SetSize (wxSize (Gui->GetCharWidth (&choiceDialog) * 80, -1)); - choiceDialog.SetSelection (-1); + choiceDialog.SetSelection (0); if (choiceDialog.ShowModal() != wxID_OK) return; -- cgit v1.2.3