We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a5ec40 commit 97ed162Copy full SHA for 97ed162
app/src/processing/app/Sketch.java
@@ -652,7 +652,7 @@ protected boolean saveAs() throws IOException {
652
// make sure there doesn't exist a .cpp file with that name already
653
// but ignore this situation for the first tab, since it's probably being
654
// resaved (with the same name) to another location/folder.
655
- for (int i = 0; i < data.getCodeCount(); i++) {
+ for (int i = 1; i < data.getCodeCount(); i++) {
656
SketchCode code = data.getCode(i);
657
if (newName.equalsIgnoreCase(code.getPrettyName())) {
658
Base.showMessage(tr("Error"),
0 commit comments