1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

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

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));
}