mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix shadowing variable in [ASTextNode setTextContainerInset] (#3188)
This commit is contained in:
committed by
Garrett Moon
parent
bc05227631
commit
39a2d7eebb
@@ -305,14 +305,12 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
|
||||
- (void)setTextContainerInset:(UIEdgeInsets)textContainerInset
|
||||
{
|
||||
BOOL needsUpdate = NO;
|
||||
{
|
||||
ASDN::MutexLocker l(__instanceLock__);
|
||||
__instanceLock__.lock();
|
||||
BOOL needsUpdate = !UIEdgeInsetsEqualToEdgeInsets(textContainerInset, _textContainerInset);
|
||||
if (needsUpdate) {
|
||||
_textContainerInset = textContainerInset;
|
||||
}
|
||||
}
|
||||
__instanceLock__.unlock();
|
||||
|
||||
if (needsUpdate) {
|
||||
[self setNeedsLayout];
|
||||
|
||||
Reference in New Issue
Block a user