From 59690513123de8904eef2a03fe7fcaaed98b1b7b Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 10 Aug 2010 16:15:15 +0000 Subject: Fixed a really minor bug that's been bothering me for a while. The proper top level targets are now listed in the section headers on output. --- src/viewdefault.cpp | 3 ++- src/viewdefault.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/viewdefault.cpp b/src/viewdefault.cpp index fdc1604..49ba7e8 100644 --- a/src/viewdefault.cpp +++ b/src/viewdefault.cpp @@ -69,6 +69,7 @@ void ViewDefault::beginTarget( const Bu::FString &sProfile, bDispedTrg = false; iTotal = rTarget.getDepCount(); iCurrent = 0; + sTopTarget = rTarget.getOutputList().first(); } iDepth++; @@ -87,7 +88,7 @@ void ViewDefault::drawTargetHdr( const Bu::FString &sProfile, } bFirst = false; sio << C_BR_WHITE << " --- " << C_BR_CYAN << sProfile << " " - << rTarget.getOutputList().first() << C_BR_WHITE << " --- " + << sTopTarget << C_BR_WHITE << " --- " << C_RESET << sio.nl; } } diff --git a/src/viewdefault.h b/src/viewdefault.h index 263b9d7..2c3db0e 100644 --- a/src/viewdefault.h +++ b/src/viewdefault.h @@ -42,6 +42,7 @@ private: int iTotal; int iCurrent; Bu::FString sCurProfile; + Bu::FString sTopTarget; }; #endif -- cgit v1.2.3