From: sshutina Date: Tue, 19 Jan 2021 16:18:08 +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=048f25b493e4b9fb71cef7c501403c8846790777;p=occt-copy.git 0032068: Inspectors - Last command don't have the time value --- diff --git a/src/Message/Message_Report.cxx b/src/Message/Message_Report.cxx index 9edb2c6a4d..15cbe29442 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)