diff --git a/XRayCalc3.dproj b/XRayCalc3.dproj
index f2e76fc..456f303 100644
--- a/XRayCalc3.dproj
+++ b/XRayCalc3.dproj
@@ -134,9 +134,9 @@
false
Resources\XRayCalc3_Icon.ico
3
- 415
- CompanyName=Zhejiang University;FileDescription=$(MSBuildProjectName);FileVersion=3.0.7.415;InternalName=;LegalCopyright=Oleksiy Penkov;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=3.0.4;Comments=
- 7
+ 420
+ CompanyName=Zhejiang University;FileDescription=$(MSBuildProjectName);FileVersion=3.0.8.420;InternalName=;LegalCopyright=Oleksiy Penkov;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=3.0.4;Comments=
+ 8
PerMonitorV2
diff --git a/forms/frm_Main.pas b/forms/frm_Main.pas
index 97f1c49..468bbdf 100644
--- a/forms/frm_Main.pas
+++ b/forms/frm_Main.pas
@@ -1810,15 +1810,16 @@ procedure TfrmMain.CalcAllExecute(Sender: TObject);
else
Exit;
- while Node <> FDataRoot do
+ while Node <> nil do
begin
Data := Project.GetNodeData(Node);
- if Data.RowType = prItem then
+ if Data.IsModel then
begin
- Project.FocusedNode := Node;
+ Project.ActiveModel := Data;
+ Structure.FromString(Data.Data);
CalcRunExecute(Sender);
end;
- Node := Project.GetNext(Node);
+ Node := Project.GetNextSibling(Node);
end;
end;
@@ -2245,9 +2246,18 @@ procedure TfrmMain.RecoverDataCurves(const LinkedID: integer);
procedure TfrmMain.RescaleChart;
begin
- Chart.BottomAxis.Minimum := StrToFloat(edStartTeta.Text);
- Chart.BottomAxis.Maximum := StrToFloat(edEndTeta.Text);
+ Chart.BottomAxis.Minimum := 0;
+ case rgCalcMode.ItemIndex of
+ 0:begin
+ Chart.BottomAxis.Maximum := StrToFloat(edEndTeta.Text);
+ Chart.BottomAxis.Minimum := StrToFloat(edStartTeta.Text);
+ end;
+ 1:begin
+ Chart.BottomAxis.Maximum := StrToFloat(edEndL.Text);
+ Chart.BottomAxis.Minimum := StrToFloat(edStartL.Text);
+ end;
+ end;
Chart.LeftAxis.Minimum := StrToFloat(cbMinLimit.Text);
end;