diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-01-26 01:00:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-26 01:00:55 +0100 |
commit | b076fb09d7723bec4ff2a0cb1e1bddbb2df8778b (patch) | |
tree | 55bf485585291380789b54dd53a1948a2238c76b | |
parent | ea94096df71a7100d3c0f707898d9760f624da32 (diff) | |
parent | fbd0b47ff0b1b04c67312a91588cc3617e3c863b (diff) | |
download | VeraCrypt-b076fb09d7723bec4ff2a0cb1e1bddbb2df8778b.tar.gz VeraCrypt-b076fb09d7723bec4ff2a0cb1e1bddbb2df8778b.zip |
Merge pull request #267 from gv5470/patch-100
Fix wxWidgets assertion failed when backing up/restoring volume headeā¦
-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; |