瀏覽代碼

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

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) {