diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-21 21:25:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-21 21:25:58 +0400 |
commit | 284a0d3610b50ff45a7acdc084c21003c9af0d41 (patch) | |
tree | d47161d4a20db189cb48db6b618e16f0c8dfab7c /source/blender/editors/space_text | |
parent | 9646f8e5b15f55e2172411922a6849945d27739c (diff) |
pass even mouse coords value as const so its not edited, view3d_get_view_aligned_coordinate() could modify the event->mval.
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 091018670ba..c0c928dcb24 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -2283,7 +2283,7 @@ static int scroll_bar_invoke(bContext *C, wmOperator *op, wmEvent *event) SpaceText *st= CTX_wm_space_text(C); ARegion *ar= CTX_wm_region(C); TextScroll *tsc; - short *mval= event->mval; + const short *mval= event->mval; int zone= -1; if(RNA_property_is_set(op->ptr, "lines")) @@ -2694,7 +2694,7 @@ static int line_number_invoke(bContext *C, wmOperator *UNUSED(op), wmEvent *even SpaceText *st= CTX_wm_space_text(C); Text *text= CTX_data_edit_text(C); ARegion *ar= CTX_wm_region(C); - short *mval= event->mval; + const short *mval= event->mval; double time; static int jump_to= 0; static double last_jump= 0; |