From 152578e49817fb68be2ac3aecd29ba8ecc8df877 Mon Sep 17 00:00:00 2001 From: Ludwig Fritsch Date: Mon, 18 Dec 2023 14:08:46 +0100 Subject: [PATCH] Add to multiple actions specified check #2866 --- .../codecharta/filter/structuremodifier/StructureModifier.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysis/filter/StructureModifier/src/main/kotlin/de/maibornwolff/codecharta/filter/structuremodifier/StructureModifier.kt b/analysis/filter/StructureModifier/src/main/kotlin/de/maibornwolff/codecharta/filter/structuremodifier/StructureModifier.kt index cf600736b5c..eb795ebeb00 100644 --- a/analysis/filter/StructureModifier/src/main/kotlin/de/maibornwolff/codecharta/filter/structuremodifier/StructureModifier.kt +++ b/analysis/filter/StructureModifier/src/main/kotlin/de/maibornwolff/codecharta/filter/structuremodifier/StructureModifier.kt @@ -102,7 +102,7 @@ class StructureModifier( var actionCount = 0 actionCount += if (setRoot != null) 1 else 0 actionCount += if (printLevels != null) 1 else 0 - actionCount += if (moveFrom != null) 1 else 0 + actionCount += if (moveFrom != null || moveTo != null) 1 else 0 actionCount += if (remove.isNotEmpty()) 1 else 0 return actionCount > 1 }