From 8efe14468503938f09354ef8ce2de06673bab8d3 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Wed, 26 Dec 2018 17:07:41 +0800 Subject: [PATCH] Fix GDI+ graphics error --- HFUTCourseSimulation/ImageExport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HFUTCourseSimulation/ImageExport.cs b/HFUTCourseSimulation/ImageExport.cs index a917790..77aa623 100644 --- a/HFUTCourseSimulation/ImageExport.cs +++ b/HFUTCourseSimulation/ImageExport.cs @@ -92,7 +92,7 @@ namespace HFUTCourseSimulation { var rect = new RectangleF(cellx * BodyCellWidth, celly * BodyCellHeight, BodyCellWidth, celly * BodyCellHeight); graphics.DrawString(courses.Name, textFont, textBrush, rect); var thisTextMargin = graphics.MeasureString(courses.Name, textFont, BodyCellWidth).Height; - graphics.DrawString(courses.Desc, textFont, textBrush, cellx * BodyCellWidth, celly * BodyCellHeight + textMargin); + graphics.DrawString(courses.Desc, textFont, textBrush, cellx * BodyCellWidth, celly * BodyCellHeight + thisTextMargin); } //reset