From 1cfa45d623c6bdc653b8b0f96d8b090ea417937e Mon Sep 17 00:00:00 2001 From: pissang Date: Sat, 4 Jul 2020 10:55:27 +0800 Subject: [PATCH] fix(state): fix z2 lift on emphasis --- src/util/graphic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/graphic.ts b/src/util/graphic.ts index cf2fb941f..9d55b9306 100644 --- a/src/util/graphic.ts +++ b/src/util/graphic.ts @@ -480,7 +480,7 @@ function elementStateProxy(this: Displayable, stateName: string): DisplayableSta if (state) { const z2EmphasisLift = (this as ECElement).z2EmphasisLift; // TODO Share with textContent? - state.z2 = this.z2 + z2EmphasisLift != null ? z2EmphasisLift : Z2_EMPHASIS_LIFT; + state.z2 = this.z2 + (z2EmphasisLift != null ? z2EmphasisLift : Z2_EMPHASIS_LIFT); } } -- GitLab