Skip to content

Commit

Permalink
ScadaData: fix formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
2mik committed Mar 19, 2018
1 parent 49a867f commit 4069537
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ScadaData/ScadaData/Client/DataFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,13 @@ public void FormatCnlVal(double val, int stat, InCnlProps cnlProps, string decSe

// определение формата числа
NumberFormatInfo nfi;
bool sepDefined = !(decSep == null && grSep == null);

if (cnlPropsIsNull)
if (cnlPropsIsNull || sepDefined)
{
nfi = decSep == null && grSep == null ?
defNfi :
CreateFormatInfo(DefDecDig, decSep, grSep);
nfi = sepDefined ?
CreateFormatInfo(DefDecDig, decSep, grSep) :
defNfi;
}
else if (cnlProps.FormatInfo == null)
{
Expand Down

0 comments on commit 4069537

Please sign in to comment.