diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex index 84971e5045f..4d44a17c005 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex @@ -1130,6 +1130,19 @@ \pgfutil@ifnextchar[{\pgfplotstablenew@impl}{\pgfplotstablenew@impl[]}} \def\pgfplotstablenew@impl[#1]#2#3{% + \ifx#3\pgfutil@undefined + \else + \ifx#3\relax + \else + % oh - there *is* already such a table. The 'getcolumnbyname' method suffers from a flaw in 'ifexists' that I do not want to fix right now. + % To work around that flaw, I merely clear the old table here: + % let's hope that '#3' really *was* a table and not some other junk... + \pgfplotslistforeachungrouped#3\as\pgfplotstable@loc@TMPa{% + \expandafter\let\csname\string#3@\pgfplotstable@loc@TMPa\endcsname=\relax% + }% + \fi + \fi + % \pgfplotsscanlinelengthinitzero % create a temporary column with the desired number of rows: \pgfutil@in@\pgfplotstablegetrowsof{#2}% |