DrawingShape for diverter

This commit is contained in:
Milan Hanajik
2021-03-02 07:55:19 +01:00
parent c950cc231c
commit be07d04f67
21 changed files with 251 additions and 1 deletions
+1 -1
View File
@@ -764,7 +764,7 @@ namespace SchematicDrawing
{
if (!p.CoordinatesAreValid) p.GetCoordinates();
int eIx = Math.Max((int)Sz.S, Math.Min((int)Sz.XL, (int)p.Sz));
int eIx = Math.Max((int)Sz.S, Math.Min((int)Sz.XL, (int)p.Sz)); /// eIx is (int)p.Sz, but between Sz.S .. Sz.XL (1 .. 4)
Pen pen = (distance == int.MaxValue) ? pensDry[eIx] : (distance < Const.Vacuum) ? pensWater[eIx] : pensVacuum[eIx];
if (highlighted)