* Added TextElementValue*.

* The curl perform loop wasn't properly checking the returned pointer,
which caused a segfault with libcurl 7.15.5.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@754 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-08-10 21:24:10 +00:00
parent ca58b43d8b
commit 3c634730c4
13 changed files with 340 additions and 34 deletions
+2 -1
View File
@@ -75,6 +75,7 @@ WindowText::redraw() {
m_canvas->erase();
unsigned int position = 0;
Canvas::attributes_list attributes;
for (iterator itr = begin(); itr != end() && position < m_canvas->height(); ++itr, ++position) {
if (*itr == NULL)
@@ -83,7 +84,7 @@ WindowText::redraw() {
char buffer[m_canvas->width() + 1];
// Add a print function that sets up attributes etc?
Canvas::attributes_list attributes;
attributes.clear();
attributes.push_back(Attributes(buffer, Attributes::a_normal, Attributes::color_default));
char* last = (*itr)->print(buffer, buffer + m_canvas->width(), &attributes, m_object);