From 8289fc9b91254631fa024482788fda0243b605ae Mon Sep 17 00:00:00 2001 From: zueuk Date: Wed, 6 Sep 2006 12:33:00 +0000 Subject: [PATCH] ResetValue toggles values --- 2.10/Source/varJuliaN.pas | 3 ++- 2.10/Source/varJuliaScope.pas | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/2.10/Source/varJuliaN.pas b/2.10/Source/varJuliaN.pas index ae98608..eeddb5a 100644 --- a/2.10/Source/varJuliaN.pas +++ b/2.10/Source/varJuliaN.pas @@ -355,7 +355,8 @@ function TVariationJulian.ResetVariable(const Name: string): boolean; begin Result := False; if Name = var_n_name then begin - N := 2; + if N = 2 then N := -2 + else N := 2; Result := True; end else if Name = var_c_name then begin diff --git a/2.10/Source/varJuliaScope.pas b/2.10/Source/varJuliaScope.pas index 930872b..500e6db 100644 --- a/2.10/Source/varJuliaScope.pas +++ b/2.10/Source/varJuliaScope.pas @@ -391,6 +391,7 @@ begin end else if Name = var_c_name then begin c := value; + Result := True; end; end; @@ -398,7 +399,8 @@ function TVariationJuliaScope.ResetVariable(const Name: string): boolean; begin Result := False; if Name = var_n_name then begin - N := 2; + if N = 2 then N := -2 + else N := 2; Result := True; end else if Name = var_c_name then begin