Merge pull request #267 from gv5470/patch-100

Fix wxWidgets assertion failed when backing up/restoring volume heade…
This commit is contained in:
Mounir IDRASSI 2018-01-26 01:00:55 +01:00 committed by GitHub
commit b076fb09d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;