From: isn Date: Mon, 25 Mar 2019 15:35:34 +0000 (+0300) Subject: refs #1885 X-Git-Tag: SH_V2_2_0~99^2~26^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f395b0c74841bc60cd79a46a6b7c40547c814a72;p=modules%2Fhydro.git refs #1885 --- 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