From: <mg...@us...> - 2008-04-22 15:10:09
|
Revision: 1757 http://obo.svn.sourceforge.net/obo/?rev=1757&view=rev Author: mgibson Date: 2008-04-22 08:10:04 -0700 (Tue, 22 Apr 2008) Log Message: ----------- fixed annoying bug where after delete some row sizes were getting doubled deleted characters were getting sent to setRowHeight to be resized and it wouldnt find them of course and get row # -1 and somehow setting -1 row caused the double row Modified Paths: -------------- phenote/trunk/src/java/phenote/gui/CharacterTableController.java Modified: phenote/trunk/src/java/phenote/gui/CharacterTableController.java =================================================================== --- phenote/trunk/src/java/phenote/gui/CharacterTableController.java 2008-04-21 21:34:40 UTC (rev 1756) +++ phenote/trunk/src/java/phenote/gui/CharacterTableController.java 2008-04-22 15:10:04 UTC (rev 1757) @@ -452,7 +452,7 @@ private void setRowHeights(List<CharacterI> chars) { for (CharacterI c : chars) { int i = filteredCharacters.indexOf(c); - //if (i < 0) return; // ?? + if (i < 0) continue; // deleted character int numRows = getNumRowsForChar(c); characterTable.setRowHeight(i,ROW_HEIGHT*numRows); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |