mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
fixed bug in makeGIDBeforeGetterFromList(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ff4a0d2cea
commit
3a59838fcd
@ -1000,11 +1000,11 @@ function makeGIDBeforeGetterFromList(get_list, restrict_to_ribbon){
|
||||
do {
|
||||
prev = getGIDBefore(gid, list)
|
||||
gid = getGIDBefore(prev, ribbon)
|
||||
} while(prev != gid && prev != null)
|
||||
} while(prev != gid && prev != null && gid != null)
|
||||
|
||||
// nothing found before current image...
|
||||
if(prev == null){
|
||||
return prev
|
||||
if(prev == null || gid == null){
|
||||
return null
|
||||
}
|
||||
|
||||
return prev
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user