|
@@ -210,18 +210,19 @@ class _FineTunePanelState extends State<FineTunePanel> {
|
|
|
}
|
|
|
if (application.activeMeasureItem is TopMeasureItem) {
|
|
|
isCombined = true;
|
|
|
- if (_currWorkingItem?.feature == null) return;
|
|
|
- pointsNum =
|
|
|
- _currWorkingItem!.feature!.innerPoints.toSet().toList().length;
|
|
|
- if (pointsNum == 1) {
|
|
|
- setState(() {
|
|
|
- ifShowPanel = true;
|
|
|
- });
|
|
|
- Offset startPoint = _currWorkingItem!.feature!.innerPoints[0]
|
|
|
- .toOffset()
|
|
|
- .scale(containerSize.width, containerSize.height);
|
|
|
- _updateAlignment(startPoint);
|
|
|
- return;
|
|
|
+ if (_currWorkingItem?.feature != null) {
|
|
|
+ pointsNum =
|
|
|
+ _currWorkingItem!.feature!.innerPoints.toSet().toList().length;
|
|
|
+ if (pointsNum == 1) {
|
|
|
+ setState(() {
|
|
|
+ ifShowPanel = true;
|
|
|
+ });
|
|
|
+ Offset startPoint = _currWorkingItem!.feature!.innerPoints[0]
|
|
|
+ .toOffset()
|
|
|
+ .scale(containerSize.width, containerSize.height);
|
|
|
+ _updateAlignment(startPoint);
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|