From 045fcbf688a04e5eba7ba8cd34309400a53e835c Mon Sep 17 00:00:00 2001 From: Dmitry Vedenko Date: Wed, 16 Jun 2021 16:32:30 +0300 Subject: [PATCH] Fixes #984 Fix uses the approach proposed by David Bailes --- src/widgets/ErrorReportDialog.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/widgets/ErrorReportDialog.cpp b/src/widgets/ErrorReportDialog.cpp index 430cb641c..d8ba15635 100644 --- a/src/widgets/ErrorReportDialog.cpp +++ b/src/widgets/ErrorReportDialog.cpp @@ -116,7 +116,9 @@ ErrorReportDialog::ErrorReportDialog( S.AddSpace(0, 6); - S.Style(wxTE_RICH | wxTE_READONLY | wxTE_MULTILINE | wxTE_DONTWRAP).MinSize(wxSize(0,152)) + S.Style(wxTE_RICH | wxTE_READONLY | wxTE_MULTILINE | wxTE_DONTWRAP) + .MinSize(wxSize(0, 152)) + .Name(XO("Problem details")) .AddTextBox({}, mReport->GetReportPreview(), 0); S.AddSpace(0, 20); @@ -126,7 +128,9 @@ ErrorReportDialog::ErrorReportDialog( S.AddSpace(0, 6); mCommentsControl = S.Style(wxTE_MULTILINE) - .MinSize(wxSize(0, 76)).AddTextBox({}, {}, 0); + .MinSize(wxSize(0, 76)) + .Name(XO("Comments")) + .AddTextBox({}, {}, 0); mCommentsControl->SetMaxLength(MaxUserCommentLength);