summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex')
-rw-r--r--graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex10
1 files changed, 7 insertions, 3 deletions
diff --git a/graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex b/graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex
index 6acaa06aa9..23e0d40b7f 100644
--- a/graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex
+++ b/graphics/pgf/contrib/circuitikz/tex/pgfcircmultipoles.tex
@@ -687,11 +687,15 @@
\pgfmathsetlength{\pgf@x}{\pgf@circ@res@temp*(-1+cos(\wiper))}
\pgfmathsetlength{\pgf@y}{\pgf@circ@res@temp*sin(\wiper)}
}
+ %
+ % Notice that the "in" anchors must mimic "ext center", otherwise they are
+ % wrong for angles > 90 degrees!
+ %
% center anchors
- \anchor{cin}{ \northwest \pgf@y=0pt\advance\pgf@x by \radius}
+ \anchor{cin}{ \pgf@y=0pt \pgf@x=0pt \advance\pgf@x by -\width}
% horizontal angles
- \anchor{in}{ \northwest \pgf@y=0pt}
- \anchor{ain}{ \northwest \pgf@y=0pt}
+ \anchor{in}{ \pgf@y=0pt \pgf@x=0pt \advance\pgf@x by -\width \advance\pgf@x by -\radius}
+ \anchor{ain}{ \pgf@y=0pt \pgf@x=0pt \advance\pgf@x by -\width \advance\pgf@x by -\radius}
\anchor{center}{ \central \pgf@y=0pt }
\anchor{east}{ \northeast \pgf@y=0pt }