Author: dazarov
Date: 2009-03-06 02:42:49 -0500 (Fri, 06 Mar 2009)
New Revision: 14069
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3934
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesEditor.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesEditor.java 2009-03-06
06:42:12 UTC (rev 14068)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/PagesEditor.java 2009-03-06
07:42:49 UTC (rev 14069)
@@ -625,7 +625,7 @@
PagesDiagramEditPart diagram = (PagesDiagramEditPart) getScrollingGraphicalViewer()
.getRootEditPart().getChildren().get(0);
FreeformViewport vp = diagram.getFreeformViewport();
- if (vp != null && part instanceof PagesEditPart) {
+ if (vp != null && part instanceof PagesEditPart && part != diagram)
{
PagesEditPart pagesPart = (PagesEditPart) part;
NodeFigure fig = (NodeFigure)pagesPart.getFigure();
if (fig.getLocation().x == 0 && fig.getLocation().y == 0) {