pgf-tikz / pgf

A Portable Graphic Format for TeX
https://pgf-tikz.github.io/
1.11k stars 105 forks source link

Damage of arrow when it is labeled with coordinate[pin;above:name] #420

Open pgf-tikz-bot opened 7 years ago

pgf-tikz-bot commented 7 years ago

Migrated from SourceForge Author: a-mi-tja Timestamp: 2017-03-01 01:52:13.612000

Please consider the following MWE:

\documentclass[border=3mm,tikz]{standalone}
\begin{document}
\begin{tikzpicture}[pin edge={-, solid, black}]
\draw[<->] (0,0) -- node[pin=above:A] {} + (1,0);
\draw[<->] (2,0) -- coordinate[pin=above:B] (a) + (1,0);
\end{tikzpicture}
\end{document}

I expect that arrow labeled by B would be the same as as arrow A.

hmenke commented 4 years ago

The fundamental problem is that for shape=coordinate the internal \iftikz@shapeborder is false and the moveto code seems to do something wrong here.