[PSSU/Trac] #3096: Fix the generation of library icon index (second
part)