%% BEGIN pstricks.bug
% LAST MODIFIED: March 12, 1998
% The latest version of this file can be obtained from Princeton.EDU.

% This file list some bugs and latebreaking news for PSTricks,
% version 0.93a, released March 12, 1993.

% PROBLEMS:

% 1. \scalebox can report missing number errors or worse, depending
%    on what is in its argument.
%    Patch: Input this file.
%
% 2. pallete.tex keeps loaded pstricks.tex.
%    Patch: Change \ifx\pstricksloaded... to \ifx\PSTricksLoaded...
%
% 3. \pscirclebox doesn't leave the right amount of space.
%    Patch: Input this file.

% PATCHES:  (Input this file to get these patches)

\edef\TheAtCode{\the\catcode`\@}
\catcode`\@=11

% 1.
\def\scalebox#1{%
  \begingroup
    \pst@getscale{#1}\pst@tempa
    \let\pst@tempc\pst@tempg
    \let\pst@tempd\pst@temph
    \pst@makebox{\@scalebox}}
\def\@scalebox{%
    \leavevmode
    \ifx\pst@tempa\@empty
      \box\pst@hbox
    \else
      \hbox{%
        \ht\pst@hbox=\pst@tempd\ht\pst@hbox
        \dp\pst@hbox=\pst@tempd\dp\pst@hbox
        \pst@dima=\pst@tempc\wd\pst@hbox
        \ifdim\pst@dima<\z@\kern-\pst@dima\fi
        \pst@Verb{CP CP translate \pst@tempa \tx@NET}%
        \hbox to \z@{\box\pst@hbox\hss}%
        \pst@Verb{%
          CP CP translate
          1 \pst@tempc\space div 1 \pst@tempd\space div scale
          \tx@NET}%
        \ifdim\pst@dima>\z@\kern\pst@dima\fi}%
    \fi
  \endgroup}
\def\@scaleboxto{%
    \ifdim\pst@dima=\z@\else
      \pst@divide{\pst@dima}{\wd\pst@hbox}\pst@tempc
    \fi
    \ifdim\pst@dimb=\z@
      \let\pst@tempd\pst@tempc
    \else
      \pst@dimc=\ht\pst@hbox\advance\pst@dimc\dp\pst@hbox
      \pst@divide{\pst@dimb}{\pst@dimc}\pst@tempd
      \ifdim\pst@dima=\z@\let\pst@tempc\pst@tempd\fi
    \fi
    \edef\pst@tempa{\pst@tempc\space\pst@tempd\space scale }%
    \ifdim\pst@dima=\z@
      \ifdim\pst@dimb=\z@
        \@pstrickserr{%
          \string\scaleboxto\space dimensions cannot both be zero}\@ehpa
        \def\pst@tempa{}%
    \fi\fi}

% 2.
\def\pscirclebox@ii#1{%
  \begingroup
    \pst@useboxpar
    \setbox\pst@hbox=\hbox{#1\pscirclebox@iii\box\pst@hbox}%
    \ifpsboxsep
      \pst@dima=.5\wd\pst@hbox
      \pst@dimb=\ht\pst@hbox
      \advance\pst@dimb\dp\pst@hbox
      \divide\pst@dimb 2
      \pst@pyth\pst@dima\pst@dimb\pst@dimc
      \advance\pst@dimc\pslinewidth
      \advance\pst@dimc\psframesep
      \advance\pst@dimb-\pst@dimc
      \setbox\pst@hbox=\hbox to2\pst@dimc{%
        \hss
        \vbox{\kern-\pst@dimb\box\pst@hbox}%
        \hss}%
      \advance\pst@dimb-\dp\pst@hbox
      \dp\pst@hbox=-\pst@dimb
    \fi
    \leavevmode\box\pst@hbox
  \endgroup}


\catcode`\@=\TheAtCode\relax
\endinput
%% END pstricks.bug
