mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:23:24 +00:00
Do not set the rectangle if it's the same
Strangelly, this method was being called even if the rectangle was the same, so we deleted everything and recreated everything again. tsc tsc. Some more improvement is needed but we are getting there. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
806d984107
commit
3169ec8dc9
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ void ToolTipItem::clear()
|
|||
|
||||
void ToolTipItem::setRect(const QRectF &r)
|
||||
{
|
||||
// qDeleteAll(childItems());
|
||||
if( r == rectangle ) {
|
||||
return;
|
||||
}
|
||||
delete background;
|
||||
|
||||
rectangle = r;
|
||||
|
|
Loading…
Add table
Reference in a new issue