diff options
author | gv5470 <gv5470@orange.fr> | 2018-01-21 11:10:38 +0100 |
---|---|---|
committer | gv5470 <gv5470@orange.fr> | 2018-01-21 11:17:34 +0100 |
commit | fbd0b47ff0b1b04c67312a91588cc3617e3c863b (patch) | |
tree | 55bf485585291380789b54dd53a1948a2238c76b /src/Main | |
parent | ea94096df71a7100d3c0f707898d9760f624da32 (diff) | |
download | VeraCrypt-fbd0b47ff0b1b04c67312a91588cc3617e3c863b.tar.gz VeraCrypt-fbd0b47ff0b1b04c67312a91588cc3617e3c863b.zip |
Fix wxWidgets assertion failed when backing up/restoring volume header (closes #100)
Diffstat (limited to 'src/Main')
-rwxr-xr-x | src/Main/GraphicUserInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |