chenxy vor 1 Jahr
Ursprung
Commit
651b7d6fe5

+ 1 - 1
DK.Basics/InvoiceLayout/Items/TextItem.cs

@@ -1179,7 +1179,7 @@ namespace Dongke.WinForm.Controls.InvoiceLayout
                         rr.X = LayoutCommon.MillimeterToPixelDpi(rectangleM.X, graphics.DpiX);
                         rr.Y = LayoutCommon.MillimeterToPixelDpi(rectangleM.Y, graphics.DpiY);
                         rr.Width = LayoutCommon.MillimeterToPixelDpi(rectangleM.Width, graphics.DpiX);
-                        rr.Height = LayoutCommon.MillimeterToPixelDpi(rectangleM.Height, graphics.DpiX);
+                        rr.Height = LayoutCommon.MillimeterToPixelDpi(rectangleM.Height, graphics.DpiY);
                         graphics.DrawString(vv, _fontDraw, Brushes.Black, rr);
                         return;
                     }

+ 1 - 1
DK.Service/InvoiceLayout/Items/TextItem.cs

@@ -1087,7 +1087,7 @@ namespace Dongke.WinForm.Controls.InvoiceLayout
 						rr.X = LayoutCommon.MillimeterToPixelDpi(rectangleM.X, graphics.DpiX);
 						rr.Y = LayoutCommon.MillimeterToPixelDpi(rectangleM.Y, graphics.DpiY);
 						rr.Width = LayoutCommon.MillimeterToPixelDpi(rectangleM.Width, graphics.DpiX);
-						rr.Height = LayoutCommon.MillimeterToPixelDpi(rectangleM.Height, graphics.DpiX);
+						rr.Height = LayoutCommon.MillimeterToPixelDpi(rectangleM.Height, graphics.DpiY);
 						graphics.DrawString(vv, _font, Brushes.Black, rr);
 						return;
 					}