mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
If color of line changed don't reset center points
This commit is contained in:
parent
aa1a3c3287
commit
d84cf9e48d
1 changed files with 2 additions and 3 deletions
|
@ -36,7 +36,7 @@ public class LineDrawingShape : BaseDrawingShape
|
|||
|
||||
public override ShapeType ShapeType { get; } = ShapeType.DrawingLine;
|
||||
|
||||
public Point[] Points { get; private set; }
|
||||
public Point[] Points { get; private set; } = new Point[2];
|
||||
public bool CenterNodeActive { get; private set; }
|
||||
public int CenterPointCount { get; private set; }
|
||||
|
||||
|
@ -74,10 +74,9 @@ public override void OnConfigLoad()
|
|||
int previousCenterPointCount = CenterPointCount;
|
||||
CenterPointCount = AnnotationOptions.LineCenterPointCount.Between(0, MaximumCenterPointCount);
|
||||
|
||||
AdjustPoints(CenterPointCount);
|
||||
|
||||
if (CenterPointCount != previousCenterPointCount)
|
||||
{
|
||||
AdjustPoints(CenterPointCount);
|
||||
CenterNodeActive = false;
|
||||
AutoPositionCenterPoints();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue