Browse Source

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

gavin.chen 2 years ago
parent
commit
40476b5d6b
1 changed files with 1 additions and 1 deletions
  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) {