diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-22 20:16:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-22 20:16:06 +0300 |
commit | 6f730601af1e169bb80a2f73839dea8091211b5c (patch) | |
tree | 2fe7683a0ebbf8e0ffd6a90651c680f90336cb55 /source/blender/include/BIF_drawtext.h | |
parent | a000473d9d9c406b69caa55acb9e8394e5b2fcc5 (diff) |
Text draw assumed curarea->spacedata.first was always a text space - which in some cases is not correct.
This fixes a crash where python changing screens then raising an error would cause a crash.
Diffstat (limited to 'source/blender/include/BIF_drawtext.h')
-rw-r--r-- | source/blender/include/BIF_drawtext.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/include/BIF_drawtext.h b/source/blender/include/BIF_drawtext.h index a63e2bb264d..6950f3ba215 100644 --- a/source/blender/include/BIF_drawtext.h +++ b/source/blender/include/BIF_drawtext.h @@ -47,7 +47,7 @@ void add_text_fs(char *file); void free_txt_data(void); void pop_space_text(struct SpaceText *st); -void get_format_string(void); +void get_format_string(struct SpaceText *st); void do_brackets(void); #endif |