Skip to content

Commit d6a5748

Browse files
author
Elias Ruemmler
committed
Bugfix pvQ calculator
1 parent 37b4af9 commit d6a5748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FlowCalc/PipeCalcView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private void btn_Clac_Click(object sender, EventArgs e)
130130
txt_FlowRate.Font = new Font(new FontFamily("Microsoft Sans Serif"), 8.25F, FontStyle.Bold);
131131
}
132132

133-
double deltaP = Pipe.CalcPressureDrop(Controller.CurrentPresets.Medium, flowRate);
133+
double deltaP = Pipe.CalcPressureDrop(Controller.CurrentPresets.Medium, UnitConverter.ToBase(flowRate, ((DisplayUnit)cmb_FlowRateUnit.SelectedItem).Unit));
134134
txt_DeltaP.Text = UnitConverter.ToUnit(deltaP, Dimensions.Pressure.GetBaseUnit(), ((DisplayUnit)cmb_DeltaPUnit.SelectedItem).Unit).ToString("f3");
135135
txt_DeltaP.Font = new Font(new FontFamily("Microsoft Sans Serif"), 8.25F, FontStyle.Bold);
136136
}

0 commit comments

Comments
 (0)