Commit 45ce2c7e authored by claes's avatar claes

Strange EventPrio wasn't handled

parent 497120bd
/* /*
* Proview $Id: xtt_evlist.cpp,v 1.17 2007-10-24 14:00:59 claes Exp $ * Proview $Id: xtt_evlist.cpp,v 1.18 2007-10-24 15:11:30 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1299,20 +1299,21 @@ void ItemAlarm::update_text() ...@@ -1299,20 +1299,21 @@ void ItemAlarm::update_text()
break; break;
case evlist_eEventType_Block: case evlist_eEventType_Block:
case evlist_eEventType_Alarm: case evlist_eEventType_Alarm:
switch ( eventprio) switch ( eventprio) {
{ case mh_eEventPrio_A:
case mh_eEventPrio_A: strcpy( type_str, "A");
strcpy( type_str, "A"); break;
break; case mh_eEventPrio_B:
case mh_eEventPrio_B: strcpy( type_str, "B");
strcpy( type_str, "B"); break;
break; case mh_eEventPrio_C:
case mh_eEventPrio_C: strcpy( type_str, "C");
strcpy( type_str, "C"); break;
break; case mh_eEventPrio_D:
case mh_eEventPrio_D: strcpy( type_str, "D");
strcpy( type_str, "D"); break;
break; default:
strcpy( type_str, "Unkw");
} }
brow_SetAnnotation( node, 0, type_str, strlen(type_str)); brow_SetAnnotation( node, 0, type_str, strlen(type_str));
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment