Skip to content

Commit

Permalink
Forbid some more operations in patterns #852
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenke committed May 18, 2020
1 parent 6e8397b commit ff3fe4c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
\let\pgfsetstrokecolor=\pgfutil@gobble%
\let\pgfsetfillcolor=\pgfutil@gobble%
\fi%
\def\tikz@fig{%
\tikzerror{You cannot use nodes inside a pattern}%
}%
\def\tikz@fig{\tikzerror{You cannot use `\string\node' inside a pattern}}%
\def\tikz@edge@plain{\tikzerror{You cannot use `edge' inside a pattern}}%
\def\tikz@to{\tikzerror{You cannot use `to' paths inside a pattern}}%
\tikzset{pattern/.code={\tikzerror{You cannot nest patterns}},
pattern color/.style={pattern}}%
}%
Expand Down

0 comments on commit ff3fe4c

Please sign in to comment.