修正BoundRect显示巨大化的问题
parent
578fd5da8e
commit
b739f4506b
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue