From: sshutina Date: Wed, 23 Dec 2020 06:19:01 +0000 (+0300) Subject: 0032068: Inspectors - Last command don't have the time value X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=51739555a64cff6d861587c294c42fbdd7e8d5fe;p=occt-copy.git 0032068: Inspectors - Last command don't have the time value # Conflicts: # src/Message/Message_Report.cxx (cherry picked from commit b78bf12642eae4675cb7c7b755be21ac7ecaeada) (cherry picked from commit 51700a580b89c0572c380dd23bf5db6166c8a166) --- diff --git a/src/Message/Message_Report.cxx b/src/Message/Message_Report.cxx index 2b038c1726..f429b2eb45 100644 --- a/src/Message/Message_Report.cxx +++ b/src/Message/Message_Report.cxx @@ -227,10 +227,9 @@ void Message_Report::RemoveLevel (Message_Level* theLevel) for (int aLevelIndex = myAlertLevels.Size(); aLevelIndex >= 1; aLevelIndex--) { Message_Level* aLevel = myAlertLevels.Value (aLevelIndex); - if (myAlertLevels.Size() == 1) // the last level, the root item should be stopped - { - Message_AttributeMeter::StopAlert (aLevel->RootAlert()); - } + // The last level, the root item should be stopped always + // as AddLevel necessarily creates the root label. + Message_AttributeMeter::StopAlert (aLevel->RootAlert()); myAlertLevels.Remove (aLevelIndex); if (aLevel == theLevel)