瀏覽代碼

improve DisplayParticle logic.

gsp 2 年之前
父節點
當前提交
cdb2d55ceb
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      OTSIncAReportApp/2-CommonFunction/CommonClass/DisplayParticle.cs

+ 2 - 0
OTSIncAReportApp/2-CommonFunction/CommonClass/DisplayParticle.cs

@@ -810,6 +810,8 @@ namespace OTSIncAReportGraph
             rect.Width = i_width - rect.X ;
             rect.Height = i_height - rect.Y ;
 
+            if (rect.Width < 1) rect.Width = 1;
+            if (rect.Height < 1) rect.Height = 1;
         
 
             return rect;