Revision 37145

View differences:

branches/v2_0_0_prep/extensions/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/contextmenu/gui/PropertyLayoutMenuEntry.java
84 84
            if (fframeDialog != null) {
85 85
                PluginServices.getMDIManager().addWindow(fframeDialog);
86 86
                IFFrame fframeAux = fframeDialog.getFFrame();
87
                if (fframeAux instanceof IFFrameUseFMap)
88
                    ((IFFrameUseFMap) fframeAux).refresh();
89
                layoutContext.getFrameCommandsRecord().update(frame, fframeAux);
90
                fframeAux.getBoundingBox(layoutContext.getAT());
91
                layoutContext.updateFFrames();
92
                layoutContext.notifAllObservers();
87
                //fframeAux is null when the cancel button has been clicked
88
                if (fframeAux != null){
89
                    if (fframeAux instanceof IFFrameUseFMap)
90
                        ((IFFrameUseFMap) fframeAux).refresh();
91
                    layoutContext.getFrameCommandsRecord().update(frame, fframeAux);
92
                    fframeAux.getBoundingBox(layoutContext.getAT());                
93
                    layoutContext.updateFFrames();
94
                    layoutContext.notifAllObservers();
95
                }
93 96
            }
94 97
        }
95 98
    }

Also available in: Unified diff