avoid repaints when the same id is set again
CCBUG:301903
This commit is contained in:
parent
a60d6db013
commit
ed1e691b2d
@ -41,6 +41,10 @@ SvgItem::~SvgItem()
|
||||
|
||||
void SvgItem::setElementId(const QString &elementID)
|
||||
{
|
||||
if (elementID == m_elementID) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_elementID = elementID;
|
||||
emit elementIdChanged();
|
||||
emit naturalSizeChanged();
|
||||
|
Loading…
x
Reference in New Issue
Block a user