Fix text formatting in event's note

This commit is contained in:
Emmanuel Papin 2015-03-08 14:33:55 +01:00
parent 63158ebe7d
commit 56b724e161
3 changed files with 6 additions and 6 deletions

View File

@ -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";

View File

@ -202,7 +202,7 @@ void Event::createNotes( std::string &notes )
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++ )
{

View File

@ -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() );