summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/yquant/tex/yquant-config.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/yquant/tex/yquant-config.tex')
-rw-r--r--graphics/pgf/contrib/yquant/tex/yquant-config.tex10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphics/pgf/contrib/yquant/tex/yquant-config.tex b/graphics/pgf/contrib/yquant/tex/yquant-config.tex
index ab07830929..6da9a4be66 100644
--- a/graphics/pgf/contrib/yquant/tex/yquant-config.tex
+++ b/graphics/pgf/contrib/yquant/tex/yquant-config.tex
@@ -234,8 +234,14 @@
{/yquant/this operator/.append style={#1},%
/yquant/every control line/.append style={#1},%
/yquant/this control/.append style={#1}},%
- operator/multi as single/.style=%
- {/yquant/every multi line/.style=/yquant/every control line},%
+ operator/multi as single/.code=%
+ {\ifnum\yquant@draw@@currentcontroltype=0 %
+ \pgfkeysalso{/yquant/every multi line/.style=/yquant/every control line}%
+ \else%
+ % #21: we don't need to double-draw the line in the same style as a control line if controls are present - then, the control line will already encompass all the registers
+ \pgfkeysalso{/yquant/every multi line/.style={draw=none}}%
+ \fi%
+ },%
operator/if multi/.code=%
{\ifyquant@config@operator@multi\pgfkeysalso{#1}\fi},%
circuit/seamless/.is if=yquant@config@circuit@seamless,%