Fix wxWidgets assertion failed when backing up/restoring volume header (closes #100)

This commit is contained in:
gv5470 2018-01-21 11:10:38 +01:00
parent ea94096df7
commit fbd0b47ff0
No known key found for this signature in database
GPG Key ID: 487DA47ECCC68313

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;