\usemodule[tikz]
\setupfloat[figure][location=middle,frame=on]

\starttext

\startbuffer[tikz]
\starttikzpicture
\draw[red,thick] (0,0) -- (1,1)
	     {[rounded corners] -- (2,0) -- (3,1)}
	          -- (3,0) -- (2,1);
\stoptikzpicture
\stopbuffer

\placefigure
	[here]
	[fig:test1]
	{The figure is flushed left, whereas it should be centered.}
	{\externalfigure[tikz.tmp]}

\placefigure
	[here]
	[fig:test2]
	{Using \type{\startcombination[1*1]} together with \type{\input}, the result looks as expected.}
	{\startcombination[1*1]
		{\input test-pgf-tikz.tmp } {}
	\stopcombination
	}

\placefigure
	[here]
	[fig:test3]
	{Using \type{\startcombination[1*1]} together with \type{\externalfigure}, the result looks again as in the first figure.}
	{\startcombination[1*1]
		{\externalfigure[tikz.tmp]} {}
	\stopcombination
	}


\stoptext
