Fix a mistake in the previous commit

This commit is contained in:
刘皓 2025-07-04 15:08:02 -04:00
parent a72f695f1c
commit db0934e308
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -325,7 +325,7 @@ void Viewport::sandbox_deserialize_end()
if (p->rect != nullptr) { if (p->rect != nullptr) {
p->rectCon = p->rect->valueChanged.connect(&ViewportPrivate::onRectChange, p); p->rectCon = p->rect->valueChanged.connect(&ViewportPrivate::onRectChange, p);
if (*p->rect != p->deserSavedRect) { if (*p->rect != p->deserSavedRect) {
geometry.rect.setSize(p->rect->toIntRect().size()); geometry.rect = p->rect->toIntRect();
p->deserGeometryChanged = true; p->deserGeometryChanged = true;
p->deserScreenRectChanged = true; p->deserScreenRectChanged = true;
} }