标尺显示修改,不要小数

This commit is contained in:
akwkevin
2021-07-23 16:46:22 +08:00
parent 0d369f90f4
commit adbb6b4a51

View File

@@ -330,7 +330,7 @@ namespace AIStudio.Wpf.ADiagram.Controls
if ((dUnit != 0.0) && (dUnit < Length))
{
FormattedText ft = new FormattedText(
(dUnit + CountShift).ToString(CultureInfo.CurrentCulture),
(Math.Round(dUnit + CountShift,0)).ToString(CultureInfo.CurrentCulture),
CultureInfo.CurrentCulture,
FlowDirection.LeftToRight,
new Typeface("Arial"),
@@ -415,7 +415,7 @@ namespace AIStudio.Wpf.ADiagram.Controls
if ((dUnit != 0.0) && (dUnit < Length))
{
FormattedText ft = new FormattedText(
(dUnit + CountShift).ToString(CultureInfo.CurrentCulture),
(Math.Round(dUnit + CountShift,0)).ToString(CultureInfo.CurrentCulture),
CultureInfo.CurrentCulture,
FlowDirection.LeftToRight,
new Typeface("Arial"),