Kaydet (Commit) e6d16a84 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

fdo#37325: make toolkit.UnoScrollBarControl not fail headless

üst 5e3211da
...@@ -76,7 +76,7 @@ public class UnoScrollBarControl extends TestCase { ...@@ -76,7 +76,7 @@ public class UnoScrollBarControl extends TestCase {
XWindow xWin = xFrame.getContainerWindow(); XWindow xWin = xFrame.getContainerWindow();
Toolkit tk = Toolkit.getDefaultToolkit(); Toolkit tk = Toolkit.getDefaultToolkit();
Dimension dim = tk.getScreenSize(); Dimension dim = new Dimension(800, 600);
Rectangle newPosSize = xWin.getPosSize(); Rectangle newPosSize = xWin.getPosSize();
newPosSize.Width = new Double(dim.getWidth()).intValue(); newPosSize.Width = new Double(dim.getWidth()).intValue();
......
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