From 6ae8145e9dba7f362234bd638873da6d3edb4503 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 18 Jun 2015 23:29:16 +0200 Subject: [PATCH] Fix incorrect flags in a sizer in wxDebugReportDialog. Don't use wxEXPAND (implicitly added by SizerFlags()) and wxCENTRE together. --- src/generic/dbgrptg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/dbgrptg.cpp b/src/generic/dbgrptg.cpp index 30f72a3a07..7651c00700 100644 --- a/src/generic/dbgrptg.cpp +++ b/src/generic/dbgrptg.cpp @@ -332,7 +332,7 @@ wxDebugReportDialog::wxDebugReportDialog(wxDebugReport& dbgrpt) wxSizer *sizerPreview = new wxStaticBoxSizer(wxVERTICAL, this, _("&Debug report preview:")); - sizerPreview->Add(CreateTextSizer(msg), SizerFlags(0).Centre()); + sizerPreview->Add(CreateTextSizer(msg), wxSizerFlags().Centre().Border()); // ... and the list of files in this debug report with buttons to view them wxSizer *sizerFileBtns = new wxBoxSizer(wxVERTICAL);