فهرست منبع

修正组合测量项完成后未保留

gavin.chen 2 سال پیش
والد
کامیت
40476b5d6b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      lib/process/workspace/application.dart

+ 1 - 1
lib/process/workspace/application.dart

@@ -418,7 +418,7 @@ class Application implements IApplication {
   void _handleBeforeSwitchItem() {
     if (activeMeasureItem == null) return;
     final item = activeMeasureItem!;
-    if (item is TopMeasureItem) {
+    if (item is TopMeasureItem && item.feature != null) {
       bool isAllEmpty =
           item.childItems.every((e) => e.measuredFeatures.isEmpty);
       if (isAllEmpty) {