Browse Source

处理处理一列帧图分布图错误的bug

CXS 3 years ago
parent
commit
1b4c712624

+ 2 - 2
OTSIncAReportApp/1-UI/Control_Graph/OTSIncAReportGraphFuncation/OTSImageDisHelp.cs

@@ -219,9 +219,9 @@ namespace OTSIncAReportGraph.OTSIncAReportGraphFuncation
 
             //需要针对第二大的值,获取时进行判断,感觉这里应该如果并未找到第二大的值的情况下,赋于0值,便于以后进行计算
             if (width_max2 == -10000000)
-                width_max2 = 0;
+                width_max2 = width_max;
             if (height_max2 == -10000000)
-                height_max2 = 0;
+                height_max2 = height_max;
 
             RectangleF ret_rect = new RectangleF(0, 0, width_max - width_max2, height_max - height_max2);