Blender Git Commit Log

Git Commits -> Revision d2a77c0

Revision d2a77c0 by Sergey Sharybin (master)
July 25, 2012, 16:53 (GMT)
Fix #32004: Up/down arrow keys can move index out of actual range of template_list

Fixed by clamping current index value to 0..list_size-1 range in list event
handling function. This shouldn't give any regressions since this clamping
happens only after template was already displayed so items counter should be
correct here.

It is still possible to set index to meaningless value by directly changing
the index value via python, but that's not in the scope of interface engine
and not currently considered a bug.

Commit Details:

Full Hash: d2a77c07e0e3cfa198783b388f3e67a32d45e458
SVN Revision: 49218
Parent Commit: 41ee294
Lines Changed: +2, -0

1 Modified Path:

/source/blender/editors/interface/interface_handlers.c (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021