diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-22 18:15:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-22 18:15:11 +0300 |
commit | 1d7e4e84d0b7c605a3dafc0638492c040f8c6e20 (patch) | |
tree | 3b24ef2d52ccc3abec45608c7b0d59fb180de99b | |
parent | 20dc752e14257c78809ada8ddfa19c26fd79a234 (diff) |
fix for py error when no text is displayed
-rw-r--r-- | release/scripts/ui/space_text.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/ui/space_text.py b/release/scripts/ui/space_text.py index 013ae79b12f..e04f87088e3 100644 --- a/release/scripts/ui/space_text.py +++ b/release/scripts/ui/space_text.py @@ -51,12 +51,12 @@ class TEXT_HT_header(bpy.types.Header): row.itemR(st, "word_wrap", text="") row.itemR(st, "syntax_highlight", text="") - row = layout.row() - row.itemO("text.run_script") - row.itemR(text, "use_module") - if text: row = layout.row() + row.itemO("text.run_script") + row.itemR(text, "use_module") + + row = layout.row() if text.filename != "": if text.dirty: row.itemL(text="File: *%s (unsaved)" % text.filename) |