Removed leftover dependency from SketchCodeDocument in SketchData.

This commit is contained in:
Claudio Indellicati 2014-08-25 13:47:52 +02:00 committed by Cristian Maglie
parent 061d1f14b6
commit 8687a78db5
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ public class SketchData {
// Don't allow people to use files with invalid names, since on load,
// it would be otherwise possible to sneak in nasty filenames. [0116]
if (BaseNoGui.isSanitaryName(base)) {
addCode(new SketchCodeDocument(new File(folder, filename)));
addCode(new SketchCode(new File(folder, filename)));
} else {
System.err.println(I18n.format("File name {0} is invalid: ignored", filename));
}