Fix text formatting in event's note
This commit is contained in:
parent
63158ebe7d
commit
56b724e161
|
@ -241,7 +241,7 @@ void Detector::_onCloseEvent(Zone** zones, Event* event)
|
|||
{
|
||||
for(std::vector<unsigned int>::iterator it = m_vnPluginZones.begin(); it != m_vnPluginZones.end(); ++it)
|
||||
{
|
||||
string noteText = "[Zone ";
|
||||
string noteText = " [Zone ";
|
||||
noteText += zones[*it]->Label();
|
||||
noteText += "]\n";
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@ void Event::createNotes( std::string ¬es )
|
|||
for ( StringSetMap::const_iterator mapIter = noteSetMap.begin(); mapIter != noteSetMap.end(); mapIter++ )
|
||||
{
|
||||
notes += mapIter->first;
|
||||
notes += ": ";
|
||||
notes += ":\n";
|
||||
const StringSet &stringSet = mapIter->second;
|
||||
for ( StringSet::const_iterator setIter = stringSet.begin(); setIter != stringSet.end(); setIter++ )
|
||||
{
|
||||
|
|
|
@ -3376,7 +3376,7 @@ unsigned int Monitor::DetectMotion( const Image &comp_image, Event::StringSet &z
|
|||
{
|
||||
alarm = true;
|
||||
score += zone->Score();
|
||||
zoneSet.insert( ("[Zone " + std::string(zone->Label()) + "]\n").c_str() );
|
||||
zoneSet.insert( (" [Zone " + std::string(zone->Label()) + "]\n").c_str() );
|
||||
if ( !zone->IsPostProcEnabled() )
|
||||
{
|
||||
zone->SetAlarm();
|
||||
|
@ -3424,7 +3424,7 @@ unsigned int Monitor::DetectMotion( const Image &comp_image, Event::StringSet &z
|
|||
alarm = true;
|
||||
zone->SetAlarm();
|
||||
score += zone->Score();
|
||||
zoneSet.insert( ("[Zone " + std::string(zone->Label()) + "]\n").c_str() );
|
||||
zoneSet.insert( (" [Zone " + std::string(zone->Label()) + "]\n").c_str() );
|
||||
if ( !zone->IsPostProcEnabled() )
|
||||
{
|
||||
Debug( 3, "Zone is alarmed, zone score = %d", zone->Score() );
|
||||
|
@ -3454,7 +3454,7 @@ unsigned int Monitor::DetectMotion( const Image &comp_image, Event::StringSet &z
|
|||
alarm = true;
|
||||
zone->SetAlarm();
|
||||
score += zone->Score();
|
||||
zoneSet.insert( ("[Zone " + std::string(zone->Label()) + "]\n").c_str() );
|
||||
zoneSet.insert( (" [Zone " + std::string(zone->Label()) + "]\n").c_str() );
|
||||
if ( !zone->IsPostProcEnabled() )
|
||||
{
|
||||
Debug( 3, "Zone is alarmed, zone score = %d", zone->Score() );
|
||||
|
@ -3486,7 +3486,7 @@ unsigned int Monitor::DetectMotion( const Image &comp_image, Event::StringSet &z
|
|||
alarm = true;
|
||||
zone->SetAlarm();
|
||||
score += zone->Score();
|
||||
zoneSet.insert( ("[Zone " + std::string(zone->Label()) + "]\n").c_str() );
|
||||
zoneSet.insert( (" [Zone " + std::string(zone->Label()) + "]\n").c_str() );
|
||||
if ( !zone->IsPostProcEnabled() )
|
||||
{
|
||||
Debug( 3, "Zone is alarmed, zone score = %d", zone->Score() );
|
||||
|
|
Loading…
Reference in New Issue