From: <ha...@us...> - 2007-02-14 07:50:11
|
Revision: 6816 http://svn.sourceforge.net/jmol/?rev=6816&view=rev Author: hansonr Date: 2007-02-13 23:50:10 -0800 (Tue, 13 Feb 2007) Log Message: ----------- 11.1.12 quick bug fix for data not working. Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/Viewer.java Modified: trunk/Jmol/src/org/jmol/viewer/Viewer.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/Viewer.java 2007-02-14 06:53:47 UTC (rev 6815) +++ trunk/Jmol/src/org/jmol/viewer/Viewer.java 2007-02-14 07:50:10 UTC (rev 6816) @@ -1294,7 +1294,7 @@ strModel = simpleReplace(strModel, "" + newLine, "\n"); } String datasep = (String) global.getParameter("dataseparator"); - if (datasep != null && (i = strModel.indexOf(datasep)) >= 0) { + if (datasep != null && datasep != "" && (i = strModel.indexOf(datasep)) >= 0) { int n = 2; while ((i = strModel.indexOf(datasep, i + 1)) >= 0) n++; @@ -1486,7 +1486,7 @@ modelManager.clear(); statusManager.clear(); stateManager.clear(global); - setRefreshing(true); + //setRefreshing(true); refresh(0, "Viewer:clear()"); System.gc(); } @@ -2528,7 +2528,7 @@ } private void render1(Graphics g, Image img, int x, int y) { - if (g == null) + if (g == null || getTestFlag1()) return; try { g.drawImage(img, x, y, null); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |