Skip to content

Commit 353d990

Browse files
committed
\pgfmatrix: slightly simplify adding row separation.
Make less dimension calculations, glue insertions, assignments for the same result.
1 parent 4d1db6f commit 353d990

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tex/generic/pgf/modules/pgfmodulematrix.code.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -609,24 +609,24 @@
609609
}%
610610

611611
\def\pgf@matrix@finish@line{%
612-
\pgf@ya=-\pgf@y%
613-
\global\advance\pgf@ya by\csname pgf@matrix@miny\the\pgfmatrixcurrentrow\endcsname%
614-
\expandafter\xdef\csname pgf@matrix@miny\the\pgfmatrixcurrentrow\endcsname{\the\pgf@ya}%
615612
\pgfutil@ifnextchar\egroup%
616613
{\egroup\pgf@end@matrix}{\pgf@matrix@no@eom@found\egroup}%
617614
}%
618615

619616
\def\pgf@matrix@no@eom@found{%
620617
\vskip\pgf@y%
618+
\pgf@y=-\pgf@y%
621619
\ifpgf@matrix@fixed%
622620
\vskip\csname pgf@matrix@miny\the\pgfmatrixcurrentrow\endcsname% unskip
623-
\vskip\pgf@y%
624-
\pgf@y=-\pgf@y%
625-
\expandafter\xdef\csname pgf@matrix@miny\the\pgfmatrixcurrentrow\endcsname{\the\pgf@y}%
626621
\gdef\pgf@matrix@row@finish{\global\pgf@picmaxy=0pt}%
627622
\else%
623+
\advance\pgf@y by%
624+
\csname pgf@matrix@miny\the\pgfmatrixcurrentrow\endcsname%
628625
\global\let\pgf@matrix@row@finish=\pgfutil@empty%
629626
\fi%
627+
\expandafter\xdef%
628+
\csname pgf@matrix@miny\the\pgfmatrixcurrentrow\endcsname%
629+
{\the\pgf@y}%
630630
\pgf@matrix@init@row%
631631
}%
632632

0 commit comments

Comments
 (0)