]> OCCT Git - occt.git/commitdiff
0027922: Samples - Qt sample document window display problem
authorbugmaster <bugmaster@opencascade.com>
Thu, 1 Oct 2020 11:42:10 +0000 (14:42 +0300)
committerabv <abv@opencascade.com>
Fri, 2 Oct 2020 13:12:51 +0000 (16:12 +0300)
samples/qt/Common/src/OcctWindow.cxx

index 767b15f230ab4cdaf8813da8d4e602c4c520e24f..0af47c1bebfd9ea2b2b6b949e4e560e68b5febe7 100644 (file)
@@ -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();
 }
 
 // =======================================================================