From f395b0c74841bc60cd79a46a6b7c40547c814a72 Mon Sep 17 00:00:00 2001 From: isn Date: Mon, 25 Mar 2019 18:35:34 +0300 Subject: [PATCH] refs #1885 --- src/HYDROGUI/HYDROGUI_StreamOp.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_StreamOp.cxx b/src/HYDROGUI/HYDROGUI_StreamOp.cxx index 74835af2..14db0d12 100755 --- a/src/HYDROGUI/HYDROGUI_StreamOp.cxx +++ b/src/HYDROGUI/HYDROGUI_StreamOp.cxx @@ -518,21 +518,28 @@ void HYDROGUI_StreamOp::createPreview() if (!ProjStat) aPanel->addWarning(tr("STREAM_PROJECTION_FAILED")); + QVector warningsStr; + for (NCollection_DataMap>::Iterator it(warnings); it.More(); it.Next()) { - const QSet& V = it.Value(); + QSet V = it.Value(); if (V.empty()) - continue; + continue; const Handle(HYDROData_Profile)& K = it.Key(); QString ProfName = K->GetName(); foreach (QString str, V) { - aPanel->addWarning("Profile: " + ProfName + ": " + str); + warningsStr.append(ProfName + ": " + str); + //aPanel->addWarning(ProfName + ": " + str); } aPanel->setBackgroundColorForProfileList(ProfName, QColor(Qt::yellow)); } + std::sort(warningsStr.begin(), warningsStr.end()); + for (int k=0;kaddWarning(warningsStr[k]); + myPreviewPrs->setShape( aPrsDef.myPrs2D ); } else //mode == 1 -- 2.39.2