修正BoundRect显示巨大化的问题
parent
578fd5da8e
commit
b739f4506b
|
@ -466,8 +466,9 @@ void LayerWrapper::paintVisualBounding(QPainter* painter) const
|
|||
layer = layer->parent;
|
||||
}
|
||||
painter->save();
|
||||
painter->setTransform(transform);
|
||||
painter->drawRect(cache.getBoundingRect());
|
||||
auto rect = this->cache.getBoundingRect();
|
||||
rect = transform.mapRect(rect);
|
||||
painter->drawRect(rect);
|
||||
painter->restore();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue