Skip to content

Commit 6351105

Browse files
committed
fixed broken new file startup
1 parent d7aa99e commit 6351105

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle/CaDoodleFile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,8 @@ public File save() throws IOException {
769769
List<CSG> currentState = getCurrentState();
770770
int currentIndex2 = getCurrentIndex();
771771
FileUtils.write(selfInternal, contents, StandardCharsets.UTF_8, false);
772-
setTimelineImage(currentState, getCurrentOpperation());
772+
if(currentIndex2>0)
773+
setTimelineImage(currentState, getCurrentOpperation());
773774
if (bom != null)
774775
bom.save();
775776
}

0 commit comments

Comments
 (0)