DrawingShape for diverter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user