# Cannot use pgf-blur twice with XeLaTex

The following code

\documentclass{article}
%\def\pgfsysdriver{pgfsys-dvipdfmx.def} %this line does not matter
\begin{document}
\begin{tikzpicture}
\end{tikzpicture}
\end{document}


Only XeLaTeX produces this. It is fine with LaTeX and LuaLaTeX. Any idea to fix it?

• This looks like an out-and-out bug in TikZ: have you reported it? – Joseph Wright Dec 17 '15 at 13:55
• @JosephWright I guess I had a hard time telling it is TikZ's bug or pgf-blur's. Anycase, I just did it: sourceforge.net/p/pgf/bugs/375 – Symbol 1 Dec 18 '15 at 4:47

This is not a bug in pgf, but in pgf-blur. I found a working version here: http://bazaar.launchpad.net/~tex-sx/tex-sx/development/files made by Andrew Stacey. This version fixes some other bugs, too.

\documentclass{report}
\usepackage{tikz}
\makeatletter
\tikzset{
\pgfbs@savebb
\pgfsyssoftpath@getcurrentpath{\pgfbs@input@path}%
\pgfbs@apply@canvas@transform
\pgfsetfillcolor{black}%
{\pgftransformshift{\pgfpoint{\pgfbs@midx}{\pgfbs@midy}}}%
\pgfbs@usebbox{fill}%
\pgfbs@restorebb
},
}
\makeatother
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}