From 2ec75c5f8ed8e318766bcbd99a8d92cc5fe5bf38 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 19 Apr 2015 16:30:28 +0200 Subject: Linux: Correct wxWidgets assert warnings when displaying about/LegalNotice dialogs. This didn't happen with official binaries because the library used disables asserts. --- src/Main/Forms/Forms.cpp | 2 -- src/Main/Forms/TrueCrypt.fbp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Main/Forms/Forms.cpp b/src/Main/Forms/Forms.cpp index d05524db..dcbd38f5 100755 --- a/src/Main/Forms/Forms.cpp +++ b/src/Main/Forms/Forms.cpp @@ -717,7 +717,6 @@ AboutDialogBase::AboutDialogBase( wxWindow* parent, wxWindowID id, const wxStrin bSizer117->Add( m_staticline3, 0, wxEXPAND|wxBOTTOM, 5 ); CreditsTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxSUNKEN_BORDER ); - CreditsTextCtrl->SetMaxLength( 0 ); bSizer117->Add( CreditsTextCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 ); @@ -1481,7 +1480,6 @@ LegalNoticesDialogBase::LegalNoticesDialogBase( wxWindow* parent, wxWindowID id, bSizer115 = new wxBoxSizer( wxVERTICAL ); LegalNoticesTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY ); - LegalNoticesTextCtrl->SetMaxLength( 0 ); bSizer115->Add( LegalNoticesTextCtrl, 1, wxALL|wxEXPAND, 5 ); wxButton* OKButton; diff --git a/src/Main/Forms/TrueCrypt.fbp b/src/Main/Forms/TrueCrypt.fbp index cf43cbf9..86621bac 100755 --- a/src/Main/Forms/TrueCrypt.fbp +++ b/src/Main/Forms/TrueCrypt.fbp @@ -3874,7 +3874,7 @@ 0 - 0 + 0 @@ -10695,7 +10695,7 @@ 0 - 0 + 0 -- cgit v1.2.3