forked from bartvdbraak/blender
Fix for #1509
Running the system info script with a text window (empty) open caused dereferencing of a null-pointer with obviously unwanted results. Catching the possible situation before it happens.
This commit is contained in:
parent
266a1c1041
commit
7c9b4e6f9a
@ -371,6 +371,7 @@ PyObject *M_Window_Redraw(PyObject *self, PyObject *args)
|
||||
if (sa->spacetype == wintype || redraw_all) {
|
||||
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);
|
||||
|
||||
@ -380,6 +381,7 @@ PyObject *M_Window_Redraw(PyObject *self, PyObject *args)
|
||||
//if (EXPP_disable_force_draw) { /* defined in Draw.[ch] ... */
|
||||
// scrarea_queue_redraw(sa);
|
||||
}
|
||||
}
|
||||
|
||||
//} else {
|
||||
scrarea_do_windraw(sa);
|
||||
|
Loading…
Reference in New Issue
Block a user