Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7746 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
May 20, 2006, 6:25:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed the last few bugs (that i found) when scrolling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r7745 r7746  
    132132    this->setRelCoorSoft2D(0, 0, 5);
    133133
    134     std::list<std::string>::const_iterator textLine = --ShellBuffer::getInstance()->getBuffer().end();
    135     bool top = false;
     134    std::list<std::string>::const_iterator textLine = ShellBuffer::getInstance()->getBuffer().begin();
    136135    for (std::list<MultiLineText*>::iterator text = this->bufferText.begin(); text != this->bufferText.end(); ++text)
    137136    {
    138137      (*text)->setVisibility(true);
    139       if (!top)
     138      if (textLine !=  ShellBuffer::getInstance()->getBuffer().end())
    140139      {
    141140        (*text)->setText((*textLine));
    142         if (textLine != ShellBuffer::getInstance()->getBuffer().begin())
    143           top = true;
    144         textLine--;
    145       }
     141        textLine++;
     142      }
     143      else
     144        (*text)->setText("");
    146145    }
    147146    repositionText();
Note: See TracChangeset for help on using the changeset viewer.