- Timestamp:
- May 20, 2006, 6:25:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r7745 r7746 132 132 this->setRelCoorSoft2D(0, 0, 5); 133 133 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(); 136 135 for (std::list<MultiLineText*>::iterator text = this->bufferText.begin(); text != this->bufferText.end(); ++text) 137 136 { 138 137 (*text)->setVisibility(true); 139 if ( !top)138 if (textLine != ShellBuffer::getInstance()->getBuffer().end()) 140 139 { 141 140 (*text)->setText((*textLine)); 142 if (textLine != ShellBuffer::getInstance()->getBuffer().begin())143 top = true;144 textLine--;145 }141 textLine++; 142 } 143 else 144 (*text)->setText(""); 146 145 } 147 146 repositionText();
Note: See TracChangeset
for help on using the changeset viewer.