From: Olivier G. <og...@us...> - 2005-12-13 22:08:47
|
Update of /cvsroot/osmose-dev/osmose/src/osmose/application/documenteditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5435/osmose/src/osmose/application/documenteditor Modified Files: OSMTreeEditorPanel.java Log Message: Links are correctly redrawn when the window is resized (bug #1359987) Index: OSMTreeEditorPanel.java =================================================================== RCS file: /cvsroot/osmose-dev/osmose/src/osmose/application/documenteditor/OSMTreeEditorPanel.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OSMTreeEditorPanel.java 30 Aug 2005 17:44:10 -0000 1.1.1.1 --- OSMTreeEditorPanel.java 13 Dec 2005 22:08:35 -0000 1.2 *************** *** 1626,1630 **** y--; compo.setLocationButNotPosition(newxecran/* - m_Document.getDeltaView()*/, y); ! // We must also redraw the link, if exist. OSMElementComponent father = compo.getFather(); if(father != null) --- 1626,1633 ---- y--; compo.setLocationButNotPosition(newxecran/* - m_Document.getDeltaView()*/, y); ! } ! // the links have to be updated ! for (Iterator it = m_AllComponents.iterator(); it.hasNext(); ) { ! OSMElementComponent compo = (OSMElementComponent)it.next(); OSMElementComponent father = compo.getFather(); if(father != null) |