VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main
diff options
context:
space:
mode:
authorgv5470 <gv5470@orange.fr>2018-01-21 10:10:38 (GMT)
committergv5470 <gv5470@orange.fr>2018-01-21 10:17:34 (GMT)
commitfbd0b47ff0b1b04c67312a91588cc3617e3c863b (patch)
tree55bf485585291380789b54dd53a1948a2238c76b /src/Main
parentea94096df71a7100d3c0f707898d9760f624da32 (diff)
downloadVeraCrypt-fbd0b47ff0b1b04c67312a91588cc3617e3c863b.zip
VeraCrypt-fbd0b47ff0b1b04c67312a91588cc3617e3c863b.tar.gz
Fix wxWidgets assertion failed when backing up/restoring volume header (closes #100)refs/pull/267/head
Diffstat (limited to 'src/Main')
-rwxr-xr-xsrc/Main/GraphicUserInterface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main/GraphicUserInterface.cpp b/src/Main/GraphicUserInterface.cpp
index aad79d7..2a3b2cd 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;