]> OCCT Git - occt-copy.git/commitdiff
0032068: Inspectors - Last command don't have the time value
authorsshutina <sshutina@opencascade.com>
Wed, 23 Dec 2020 06:19:01 +0000 (09:19 +0300)
committernds <nds@opencascade.com>
Tue, 19 Jan 2021 16:17:54 +0000 (19:17 +0300)
src/Message/Message_Report.cxx

index 41c64accfa901f5e91709cc1e62d44e25a7008cc..a78e360b0986334a32e03118f39a98a79cf36000 100644 (file)
@@ -228,10 +228,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)