修正BoundRect显示巨大化的问题

dev-wuyize
karlis 2023-03-22 20:37:09 +08:00
parent 578fd5da8e
commit b739f4506b
1 changed files with 3 additions and 2 deletions

View File

@ -466,8 +466,9 @@ void LayerWrapper::paintVisualBounding(QPainter* painter) const
layer = layer->parent; layer = layer->parent;
} }
painter->save(); painter->save();
painter->setTransform(transform); auto rect = this->cache.getBoundingRect();
painter->drawRect(cache.getBoundingRect()); rect = transform.mapRect(rect);
painter->drawRect(rect);
painter->restore(); painter->restore();
} }