From 6e780c35ad4d3f988ef3ea236aed48ac1ada6229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Tue, 27 Apr 2021 09:52:53 +0800 Subject: [PATCH] condition bug fix --- doric-Qt/doric/utils/DoricLayouts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-Qt/doric/utils/DoricLayouts.cpp b/doric-Qt/doric/utils/DoricLayouts.cpp index 3e92d468..b74897ad 100644 --- a/doric-Qt/doric/utils/DoricLayouts.cpp +++ b/doric-Qt/doric/utils/DoricLayouts.cpp @@ -492,9 +492,9 @@ void DoricLayouts::setFrame() { << " measuredX: " << this->measuredX << " measuredY: " << this->measuredY; - if (qAbs(this->measuredWidth - this->view->width() >= 0.00001f)) + if (qAbs(this->measuredWidth - this->view->width()) >= 0.00001f) this->view->setProperty("width", this->measuredWidth); - if (qAbs(this->measuredHeight - this->view->height() >= 0.00001f)) + if (qAbs(this->measuredHeight - this->view->height()) >= 0.00001f) this->view->setProperty("height", this->measuredHeight); this->view->setProperty("x", this->measuredX);