mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various fixes
This commit is contained in:
@@ -96,7 +96,9 @@ public func generateRectsImage(color: UIColor, rects: [CGRect], inset: CGFloat,
|
||||
var currentRects: [CGRect] = []
|
||||
for rect in rects {
|
||||
if rect.width.isZero {
|
||||
combinedRects.append(currentRects)
|
||||
if !currentRects.isEmpty {
|
||||
combinedRects.append(currentRects)
|
||||
}
|
||||
currentRects.removeAll()
|
||||
} else {
|
||||
currentRects.append(rect)
|
||||
|
||||
Reference in New Issue
Block a user