File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 19
19
20
20
## Version 0.14.2 (to be released)
21
21
22
- - Alt/CE: Fix ` RegisterValues ` in the C header.
22
+ - Alt/CE: Fix ` Alt_CE_Get_RegisterValues ` in the C header.
23
23
- Alt/PDE: Check for missing solution in a few functions.
24
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.
25
+ - Circuit/API: check if there is a circuit in ` Circuit_Save ` .
26
+ - Lines/API: adjust behavior of ` Lines_Get_Parent ` when the compat flag is off.
26
27
27
28
## Version 0.14.1 (2024-02-16)
28
29
Original file line number Diff line number Diff line change @@ -840,17 +840,22 @@ function Lines_Get_Parent(): Integer; CDECL;
840
840
// Returns line index or 0 if it fails or no more lines
841
841
var
842
842
pLine: TLineObj;
843
+ other: TDSSCktElement;
843
844
begin
844
845
Result := 0 ;
845
846
if not _activeObj(DSSPrime, pLine) then
846
847
Exit;
847
848
848
- if pLine.ParentPDelement = NIL then
849
+ other := pLine.ParentPDElement;
850
+ if other = NIL then
849
851
Exit;
850
852
851
- if (pLine.ParentPDelement. Enabled and ((pLine.ParentPDelement .DssObjtype and CLASSMASK) = LINE_ELEMENT)) then
853
+ if (other. Enabled and ((other .DssObjtype and CLASSMASK) = LINE_ELEMENT)) then
852
854
begin
853
- DSSPrime.ActiveCircuit.ActiveCktElement := pLine.ParentPDElement;
855
+ DSSPrime.ActiveCircuit.ActiveCktElement := other;
856
+ if ((DSS_EXTENSIONS_COMPAT and ord(DSSCompatFlag.ActiveLine)) = 0 ) then
857
+ DSSPrime.ActiveCircuit.Lines.Get(other.ClassIndex);
858
+
854
859
Result := DSSPrime.ActiveCircuit.Lines.ActiveIndex;
855
860
end ;
856
861
end ;
You can’t perform that action at this time.
0 commit comments