Revision 38608 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/gui/ProjectWindow.java

View differences:

ProjectWindow.java
57 57
import org.gvsig.andami.help.Help;
58 58
import org.gvsig.andami.messages.NotificationManager;
59 59
import org.gvsig.andami.ui.mdiManager.IWindow;
60
import org.gvsig.andami.ui.mdiManager.MDIManager;
60 61
import org.gvsig.andami.ui.mdiManager.SingletonWindow;
61 62
import org.gvsig.andami.ui.mdiManager.WindowInfo;
62 63
import org.gvsig.app.extension.ProjectExtension;
......
332 333
                return;
333 334
            }
334 335
            PluginServices.getMDIManager().addWindow(window,
335
                GridBagConstraints.FIRST_LINE_END);
336
                MDIManager.ALIGN_FIRST_LINE_END_CASCADE);
336 337
            project.setModified(true);
337 338
        }
338 339
    }
......
424 425
            if (lastremoved > lstDocs.getModel().getSize()) {
425 426
                lastremoved = lstDocs.getModel().getSize();
426 427
            }
427
            if (lastremoved > 0) {
428
            if (lastremoved >= 0) {
428 429
                lstDocs.setSelectedIndex(lastremoved);
429 430
            }
430
            refreshList();
431
            // refreshList();
431 432
            project.setModified(true);
432 433
        }
433 434
    }

Also available in: Unified diff