From: bugmaster Date: Thu, 1 Oct 2020 11:42:10 +0000 (+0300) Subject: 0027922: Samples - Qt sample document window display problem X-Git-Tag: V7_5_0_beta~22 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=7e6da17b9f139c36ccc84d8d7ea8d80b77fe7d7c;p=occt.git 0027922: Samples - Qt sample document window display problem --- diff --git a/samples/qt/Common/src/OcctWindow.cxx b/samples/qt/Common/src/OcctWindow.cxx index 767b15f230..0af47c1beb 100644 --- a/samples/qt/Common/src/OcctWindow.cxx +++ b/samples/qt/Common/src/OcctWindow.cxx @@ -152,8 +152,8 @@ Standard_Real OcctWindow::Ratio() const void OcctWindow::Size ( Standard_Integer& theWidth, Standard_Integer& theHeight ) const { QRect aRect = myWidget->rect(); - theWidth = aRect.right(); - theHeight = aRect.bottom(); + theWidth = aRect.width(); + theHeight = aRect.height(); } // =======================================================================