We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Circuit_Save
1 parent ef35b76 commit d8710bfCopy full SHA for d8710bf
docs/changelog.md
@@ -22,6 +22,7 @@
22
- Alt/CE: Fix `RegisterValues` in the C header.
23
- Alt/PDE: Check for missing solution in a few functions.
24
- Commands/`CalcLaplacian`: Give proper error message instead of crashing or giving "access violation" messages.
25
+- `Circuit_Save`: check if there is circuit to save.
26
27
## Version 0.14.1 (2024-02-16)
28
src/CAPI/CAPI_Circuit.pas
@@ -1143,6 +1143,8 @@ function Circuit_Save(dirfilepath: PAnsiChar; saveFlags: DSSSaveFlags): PAnsiCha
1143
begin
1144
res := '';
1145
Result := NIL;
1146
+ if InvalidCircuit(DSSPrime) then
1147
+ Exit;
1148
if DSSPrime.ActiveCircuit.Save(dirfilepath, @saveFlags, @res) then
1149
Result := DSS_GetAsPAnsiChar(DSSPrime, res);
1150
end;
0 commit comments