mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Limit duplicit symbols
This commit is contained in:
parent
37290e231a
commit
f68573afaf
@ -13,10 +13,15 @@ Text::~Text()
|
||||
|
||||
void Text::render(QPainter *painter) const
|
||||
{
|
||||
QSet<QString> set;
|
||||
|
||||
for (int i = 0; i < _items.size(); i++) {
|
||||
const TextItem *ti = _items.at(i);
|
||||
if (ti->isVisible() && _sceneRect.intersects(ti->boundingRect()))
|
||||
if (ti->isVisible() && _sceneRect.intersects(ti->boundingRect())
|
||||
&& !set.contains(ti->text())) {
|
||||
ti->paint(painter);
|
||||
set.insert(ti->text());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user