From 69db39c035455fc0154006304e7340d825415e99 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 6 Jan 2020 04:49:15 +0100 Subject: SWT GLCanvas: Fix NPE in DEBUG mode; NewtCanvasSWT: Resurect comment in setBounds(..) --- src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newt/classes/com/jogamp') diff --git a/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java b/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java index 6344ad9ca..117c1ca47 100644 --- a/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java +++ b/src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java @@ -222,7 +222,8 @@ public class NewtCanvasSWT extends Canvas implements NativeWindowHolder, WindowC System.err.println("NewtCanvasSWT.setBounds: "+x+"/"+y+" "+width+"x"+height); } if( SWTAccessor.isOSX ) { - // Force newtChild to update its size and position (OSX only) + // Propagate the setBounds method coming from parent elements to this element + // and force newtChild to update its position (OSX only) updatePosSizeCheck(true /* updatePos */); } } -- cgit v1.2.3