Fix #25818: Text Editor holizontal grab inverted

Stupid typo. Maybe it's a result of merging two patches related to this part of code.
This commit is contained in:
Sergey Sharybin 2011-01-26 21:00:52 +00:00
parent c627e1cbaa
commit 4613d638a9

@ -2056,7 +2056,7 @@ static void scroll_apply(bContext *C, wmOperator *op, wmEvent *event)
tsc->delta[1]+= mval[1] - tsc->old[1]; tsc->delta[1]+= mval[1] - tsc->old[1];
if(!tsc->scrollbar) { if(!tsc->scrollbar) {
txtdelta[0]= tsc->delta[0]/st->cwidth; txtdelta[0]= -tsc->delta[0]/st->cwidth;
txtdelta[1]= tsc->delta[1]/st->lheight; txtdelta[1]= tsc->delta[1]/st->lheight;
tsc->delta[0]%= st->cwidth; tsc->delta[0]%= st->cwidth;