Project

General

Profile

Actions

Bug #23515

closed

SpriteGeneration generates wrong output if there are several icons sizes which are same width and nearly same count

Added by Steffen Ritter about 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-09-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The spriteGenerator sorts icons into groups depending on their size.
It also arranges icons in the sprite from the width in the sprite descending.

This information is stored in an array with the "width" of the icons as key.
If there are two icon groups, which icons have the same width and same icon-count (in fact width * ceilg(sqrt(icon-count)) equals) they overwrite each other in the array, and one group is positioned at 0,0.

(issue imported from #M15662)


Files

15662.diff (739 Bytes) 15662.diff Administrator Admin, 2010-09-08 14:27
15662_v2.diff (743 Bytes) 15662_v2.diff Administrator Admin, 2010-09-08 14:36
Actions

Also available in: Atom PDF