]> 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>
Mon, 29 Mar 2021 10:03:32 +0000 (13:03 +0300)
# Conflicts:
# src/Message/Message_Report.cxx

(cherry picked from commit b78bf12642eae4675cb7c7b755be21ac7ecaeada)
(cherry picked from commit 51700a580b89c0572c380dd23bf5db6166c8a166)

src/Message/Message_Report.cxx

index 2b038c1726c3fe9d741c9b83fa1348ca7117ae54..f429b2eb454e856d7e9179e27abefd5336f59874 100644 (file)
@@ -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)