From 75cd0249ee8e8cb4bb88ff729c9ba73f56b37a80 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 27 Dec 2018 09:04:55 +0800 Subject: [PATCH] Fix export image header error --- HFUTCourseSimulation/ImageExport.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HFUTCourseSimulation/ImageExport.cs b/HFUTCourseSimulation/ImageExport.cs index 40bc819..92a129c 100644 --- a/HFUTCourseSimulation/ImageExport.cs +++ b/HFUTCourseSimulation/ImageExport.cs @@ -71,8 +71,8 @@ namespace HFUTCourseSimulation { //draw header - graphics.FillRectangle(headerBrush, 0, 0, weekWidth, HeaderCellHeight); - graphics.FillRectangle(headerBrush, 0, 0, LeftCellWidth, weekHeight - WeekHeaderHeight); + graphics.FillRectangle(headerBrush, 0, 0, weekWidth - Blank, HeaderCellHeight); + graphics.FillRectangle(headerBrush, 0, 0, LeftCellWidth, weekHeight - WeekHeaderHeight - Blank); //draw header text for (int j = 0; j < 7; j++) { graphics.DrawString(weekDict[j], textFont, textBrush, LeftCellWidth + j * BodyCellWidth, 0);