From 2615e249c2985cb44c7c8e38d23a2b313855ff50 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 14 Feb 2022 10:29:41 +0100 Subject: [PATCH] Test: [skip ci] limit the text in the error dialog to 1000 chars as otherwise it can become larger than the available vertical space of the desktop --- src/Mod/Test/Gui/UnitTestImp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Test/Gui/UnitTestImp.cpp b/src/Mod/Test/Gui/UnitTestImp.cpp index 2d0220c1a0..8262ea97ac 100644 --- a/src/Mod/Test/Gui/UnitTestImp.cpp +++ b/src/Mod/Test/Gui/UnitTestImp.cpp @@ -139,6 +139,9 @@ void UnitTestDialog::on_treeViewFailure_itemDoubleClicked(QTreeWidgetItem * item lines.erase(lines.begin()+20, lines.end()); text = lines.join(QLatin1String("\n")); } + if (text.size() > 1000) { + text = text.left(1000); + } msgBox.setText(text); msgBox.exec();