Kaydet (Commit) 75b6b24a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

sb140: #i117486# avoid XWindow.getPosSize immediately after XWindow.setPosSize

üst 98510a8f
...@@ -109,7 +109,12 @@ public class UnitConversion ...@@ -109,7 +109,12 @@ public class UnitConversion
assertNotNull("failed: There is no office.", xMSF); assertNotNull("failed: There is no office.", xMSF);
// create a window // 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); assertNotNull("failed: there is no window peer", xWindowPeer);
...@@ -119,12 +124,6 @@ public class UnitConversion ...@@ -119,12 +124,6 @@ public class UnitConversion
xWindow.setVisible(Boolean.TRUE); 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.Rectangle aRect = xWindow.getPosSize();
com.sun.star.awt.Point aPoint = new com.sun.star.awt.Point(aRect.X, aRect.Y); 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); com.sun.star.awt.Size aSize = new com.sun.star.awt.Size(aRect.Width, aRect.Height);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment