Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-10-20 12:19:51 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2011-10-20 12:19:51 +0400
commitf037642843bf7f7b8fe219d73480c896d7746372 (patch)
tree46cdbaaebccdd40b43143f6ad8ffb69608b98a01 /source/blender/editors/space_text
parent1555d4b1a8ff43414b6ab5e87097d53f86c86a00 (diff)
Fix #28937: Text Editor Selection (Scroll Bar)
Do not start selection if mouse cursor.x >= scrollbar.x
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r--source/blender/editors/space_text/text_ops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c
index 8d40550961f..242bccd2376 100644
--- a/source/blender/editors/space_text/text_ops.c
+++ b/source/blender/editors/space_text/text_ops.c
@@ -2583,6 +2583,9 @@ static int set_selection_invoke(bContext *C, wmOperator *op, wmEvent *event)
SpaceText *st= CTX_wm_space_text(C);
SetSelection *ssel;
+ if(event->mval[0]>=st->txtbar.xmin)
+ return OPERATOR_PASS_THROUGH;
+
op->customdata= MEM_callocN(sizeof(SetSelection), "SetCursor");
ssel= op->customdata;
ssel->selecting= RNA_boolean_get(op->ptr, "select");