Skip to content

Commit 97ed162

Browse files
author
Federico Fissore
committed
It was impossible to save a sketch with its default name. Fixed
1 parent 6a5ec40 commit 97ed162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/Sketch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ protected boolean saveAs() throws IOException {
652652
// make sure there doesn't exist a .cpp file with that name already
653653
// but ignore this situation for the first tab, since it's probably being
654654
// resaved (with the same name) to another location/folder.
655-
for (int i = 0; i < data.getCodeCount(); i++) {
655+
for (int i = 1; i < data.getCodeCount(); i++) {
656656
SketchCode code = data.getCode(i);
657657
if (newName.equalsIgnoreCase(code.getPrettyName())) {
658658
Base.showMessage(tr("Error"),

0 commit comments

Comments
 (0)