Fix #28937: Text Editor Selection (Scroll Bar)

Do not start selection if mouse cursor.x >= scrollbar.x
This commit is contained in:
Sergey Sharybin
2011-10-20 08:19:51 +00:00
parent 1555d4b1a8
commit f037642843

View File

@@ -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");