Calling a pop_space_text(st) crashed in Python code that was drawing areas.
Why this was there? No idea... remainder of NaN days. Ugly, bad, go away!
This commit is contained in:
2007-02-15 11:26:19 +00:00
parent 5b816ab8f8
commit 78a12943b1

View File

@@ -385,13 +385,7 @@ PyObject *M_Window_Redraw( PyObject * self, PyObject * args )
scrarea_queue_redraw(sa);
}
else {
if( sa->spacetype == SPACE_TEXT ) {
st = sa->spacedata.first;
if( st->text ) {
if( st->text->flags & TXT_FOLLOW ) /* follow cursor display */
pop_space_text( st );
}
}
/* do not call fancy hacks here like pop_space_text(st); (ton) */
scrarea_do_windraw( sa );
if( sa->headwin ) scrarea_do_headdraw( sa );
}