mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 15:12:30 +00:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user