Added missed data listener ND_CURSOR to text space.
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 26 Sep 2010 07:07:05 +0000 (07:07 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 26 Sep 2010 07:07:05 +0000 (07:07 +0000)
source/blender/editors/space_text/space_text.c

index ada2a6ee20056867b8ee0468f9158cf1572f064b..7f7a07f8cf75235ece1ea0279af1a135cb9b09e9 100644 (file)
@@ -123,8 +123,12 @@ static void text_listener(ScrArea *sa, wmNotifier *wmn)
                        if(wmn->reference && wmn->reference != st->text)
                                break;
 
-                       if(wmn->data == ND_DISPLAY)
-                               ED_area_tag_redraw(sa);
+                       switch(wmn->data) {
+                               case ND_DISPLAY:
+                               case ND_CURSOR:
+                                       ED_area_tag_redraw(sa);
+                                       break;
+                       }
 
                        switch(wmn->action) {
                                case NA_EDITED: