VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-01-26 01:00:55 +0100
committerGitHub <noreply@github.com>2018-01-26 01:00:55 +0100
commitb076fb09d7723bec4ff2a0cb1e1bddbb2df8778b (patch)
tree55bf485585291380789b54dd53a1948a2238c76b /src
parentea94096df71a7100d3c0f707898d9760f624da32 (diff)
parentfbd0b47ff0b1b04c67312a91588cc3617e3c863b (diff)
downloadVeraCrypt-b076fb09d7723bec4ff2a0cb1e1bddbb2df8778b.tar.gz
VeraCrypt-b076fb09d7723bec4ff2a0cb1e1bddbb2df8778b.zip
Merge pull request #267 from gv5470/patch-100
Fix wxWidgets assertion failed when backing up/restoring volume headeā€¦
Diffstat (limited to 'src')
-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 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;