Revision: 5668
          http://sourceforge.net/p/jump-pilot/code/5668
Author:   michaudm
Date:     2018-01-13 12:50:33 +0000 (Sat, 13 Jan 2018)
Log Message:
-----------
Fix a NPE happening with a NewLayerProperties JInternalFrame passed to 
GUIUtil#setBounds

Modified Paths:
--------------
    core/trunk/src/com/vividsolutions/jump/workbench/ui/GUIUtil.java

Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/GUIUtil.java
===================================================================
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/GUIUtil.java    
2018-01-07 21:15:50 UTC (rev 5667)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/GUIUtil.java    
2018-01-13 12:50:33 UTC (rev 5668)
@@ -1348,7 +1348,7 @@
         (int) other.getLocationOnScreen().getY()
             + (location.fromBottom ? (other.getHeight()
                 - componentToMove.getHeight() - location.y) : location.y));
-    if (!(componentToMove instanceof Window)) {
+    if (!(componentToMove instanceof Window) && !(componentToMove instanceof 
JInternalFrame)) {
       SwingUtilities.convertPointFromScreen(p, componentToMove.getParent());
     }
     componentToMove.setBounds(p.x, p.y, width, height);


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to