~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/konsole/src/Screen.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-02 13:28:20 UTC
  • mto: This revision was merged to the branch mainline in revision 258.
  • Revision ID: james.westby@ubuntu.com-20091202132820-tpxn348l9frx5zd5
Tags: upstream-4.3.80
ImportĀ upstreamĀ versionĀ 4.3.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
455
455
 
456
456
void Screen::getImage( Character* dest, int size, int startLine, int endLine ) const
457
457
{
458
 
    Q_ASSERT( startLine >= 0 ); 
 
458
    Q_ASSERT( startLine >= 0 );
459
459
    Q_ASSERT( endLine >= startLine && endLine < history->getLines() + lines );
460
460
 
461
461
    const int mergedLines = endLine - startLine + 1;
462
462
 
463
463
    Q_ASSERT( size >= mergedLines * columns ); 
 
464
    Q_UNUSED( size );
464
465
 
465
466
    const int linesInHistoryBuffer = qBound(0,history->getLines()-startLine,mergedLines);
466
467
    const int linesInScreenBuffer = mergedLines - linesInHistoryBuffer;