# \psboxfill cannot work with a starred \pspicture

When \psboxfill encloses \pspicture*, I got a strange result as follows.

\documentclass[cmyk]{minimal}
\usepackage{pstricks,pst-fill}

\psboxfill{%
\psset{unit=1pt}
\begin{pspicture*}(1,1)
\psline(-1,-1)(2,2)
\psline(-1,2)(2,-1)
\end{pspicture*}%
}

\pagestyle{empty}
\begin{document}

\begin{pspicture}[showgrid=false](-2,-2)(2,2)
\pscircle[
fillstyle=solid,
opacity=0.25,
fillcolor=gray,
fillsep=0.4,
(0,0){2}
\end{pspicture}

\end{document}


It means the \psboxfill cannot work with clipped \pspicture that are sometimes needed in our tasks. Is it a bug?

-

Clipping inside a clipping region is difficult. Use this definition:

\psboxfill{%
\psset{unit=2pt,linewidth=0.4pt}% to make the x-like filling objects visible
\AltClipMode
\begin{pspicture*}(1,1)
\psline(-1,-1)(2,2)
\psline(-1,2)(2,-1)
\end{pspicture*}%
}

-
+1 I need to adjust the linewidth. – xport Jul 8 '11 at 16:00