diff -r ca8a1b6995f6 -r 52e343bb8f80 memspy/Engine/Source/Sink/MemSpyEngineOutputList.cpp --- a/memspy/Engine/Source/Sink/MemSpyEngineOutputList.cpp Tue Aug 31 16:45:49 2010 +0300 +++ b/memspy/Engine/Source/Sink/MemSpyEngineOutputList.cpp Wed Sep 01 12:37:10 2010 +0100 @@ -102,18 +102,8 @@ for( TInt j=0; jValue().Length()) - { - maxLengthCaption = Max( maxLengthCaption, item->Caption().Length() ); - maxLengthValue = Max( maxLengthValue, item->Value().Length() ); - } - else - { - // If something doesn't have a value (ie it's a section header, represented as just a caption) then the caption - // shouldn't be factored into the maxcaptionlength. But consider it in maxlengthValue to make sure we actually - // make the overall buffers big enough - maxLengthValue = Max( maxLengthValue, item->Caption().Length() ); - } + maxLengthCaption = Max( maxLengthCaption, item->Caption().Length() ); + maxLengthValue = Max( maxLengthValue, item->Value().Length() ); } // Second pass - real this time - to print the values @@ -131,15 +121,7 @@ HBufC* value = MemSpyEngineUtils::CleanupTextLC( item->Value() ); // Now format the final line, with padding. - if (value->Length()) - { - pLine.Justify( *caption, maxLengthCaption + 3, ELeft, TChar(' ') ); - } - else - { - // items without value (ie just captions, ie section headers) aren't constrained by the maxLengthCaption restriction - pLine.Copy(*caption); - } + pLine.Justify( *caption, maxLengthCaption + 3, ELeft, TChar(' ') ); pLine.Append( *value ); CleanupStack::PopAndDestroy( 2, caption );