fix bug with hidden code that caused exceptions with hidden code that had bad names

This commit is contained in:
benfry
2006-11-06 17:01:53 +00:00
parent 5eb14c8e24
commit 05608e3a01
3 changed files with 21 additions and 1 deletions
+6 -1
View File
@@ -195,6 +195,7 @@ public class Sketch {
// also don't allow people to use files with invalid names,
// since on load, it would be otherwise possible to sneak in
// nasty filenames. [rev 0116]
//System.out.println("skipping unsanitary " + base + " for " + list[i]);
continue;
} else if (new File(folder, list[i]).isDirectory()) {
@@ -227,7 +228,11 @@ public class Sketch {
}
}
// remove any entries that didn't load properly
// some of the hidden files may be bad too, so use hiddenCounter
// added for rev 0121, fixes bug found by axel
hiddenCount = hiddenCounter;
// remove any entries that didn't load properly from codeCount
int index = 0;
while (index < codeCount) {
if ((code[index] == null) ||
+1
View File
@@ -28,6 +28,7 @@ X remember location of cursor on "save as" ?
X also scroll bar position and current tab
X "save as" loses cursor/scroll positions (because reloading)
X http://processing.org/bugs/show_bug.cgi?id=86
X as a result, people avoid using "save as"
X several bits of reference are updated, incorporate new zip file
+14
View File
@@ -5,6 +5,20 @@ X implement page setup and print
X pretty printing of code in project
X http://dev.processing.org/bugs/show_bug.cgi?id=27
X also turn off line highlighting while printing
X fix bug with 'hidden' code causing an error inside rebuildMenu()
processing wish list
_ opening multiple versions of p5 at a time
_ shouldn't actually be a big deal
_ would also help the opening multiple files thing
_ TRIANGLE_STRIP not highlighted for "find in reference"
_ nor is it listed on the reference page
_ so students can't find the ref for it
_ needs to link TRIANGLE_STRIP to the beginShape() reference
_ stop button not stopping anything
_ copy running from from /tmp/buildXXxxx on crash of p5
_ should probably make a way to save/recover code
_ code as columns (screen is wide, code is not)
_ lots of runtime exceptions still being lost on osx
_ particularly with multi-threaded applications