diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-09-12 12:06:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-09-12 22:47:48 +0200 |
commit | 75b6b24ab5e238dcd49678ce6add509e97e39605 (patch) | |
tree | f61e0f8aaaf0ada8d265460d109568c0c4ba311d /toolkit | |
parent | sb140: #i117295# fix previous fix (diff) | |
download | core-75b6b24ab5e238dcd49678ce6add509e97e39605.tar.gz core-75b6b24ab5e238dcd49678ce6add509e97e39605.zip |
sb140: #i117486# avoid XWindow.getPosSize immediately after XWindow.setPosSize
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/qa/complex/toolkit/UnitConversion.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/toolkit/qa/complex/toolkit/UnitConversion.java b/toolkit/qa/complex/toolkit/UnitConversion.java index b4cf8a8e1490..ef100a7f81ad 100644 --- a/toolkit/qa/complex/toolkit/UnitConversion.java +++ b/toolkit/qa/complex/toolkit/UnitConversion.java @@ -109,7 +109,12 @@ public class UnitConversion assertNotNull("failed: There is no office.", xMSF); // create a window - XWindowPeer xWindowPeer = DesktopTools.createFloatingWindow(xMSF); + int x = 100; + int y = 100; + int width = 640; + int height = 480; + XWindowPeer xWindowPeer = DesktopTools.createFloatingWindow( + xMSF, x, y, width, height); assertNotNull("failed: there is no window peer", xWindowPeer); @@ -119,12 +124,6 @@ public class UnitConversion xWindow.setVisible(Boolean.TRUE); - int x = 100; - int y = 100; - int width = 640; - int height = 480; - xWindow.setPosSize(x, y, width, height, com.sun.star.awt.PosSize.POSSIZE); - com.sun.star.awt.Rectangle aRect = xWindow.getPosSize(); com.sun.star.awt.Point aPoint = new com.sun.star.awt.Point(aRect.X, aRect.Y); com.sun.star.awt.Size aSize = new com.sun.star.awt.Size(aRect.Width, aRect.Height); |