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
path: root/intern
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-10-01 16:27:11 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-10-01 16:34:24 +0300
commit066df84f730d213c3e6ea875c202aa46cf1a6642 (patch)
tree877e5db3d9abaf7a93b59d612870eaf908862ff4 /intern
parent29c2a6469427b7c43d815188af7e7ed3f79f486c (diff)
Fix T46340: Auto scrolling in text editor with upward selection not work.
Cleanup and rework a bit text_cursor_set_to_pos_wrapped(), it did not handle correctly negative y valuesi, because it was only checking lines starting from first visible one. Mostly, we now directly get line matching given y position (be it an invisible one) from the helper (renamed `get_line_pos_wrapped()`), instead of first visible one, which allows us to get rid of additional complexity of looping over next lines until we find correct one. This code remains rather complex to follow, added some asserts to ensure everything works as expected, and tested it rather seriously, but DO NOT backport this to 2.76!
Diffstat (limited to 'intern')
0 files changed, 0 insertions, 0 deletions