if (oCmd instanceof EndRepeatCmd)
if (oCmd instanceof EndCmd)
	public void add(Cmd oCmd)	{		// Not inside a repeat cmd?		if (m_vStack.size() == 0)		{			m_vCmds.add(oCmd);			// Start a new cmd block.			if (oCmd instanceof RepeatCmd)				m_vStack.push(oCmd);		}		// Inside a repeat cmd.		else // (m_vStack.size() > 0)		{			RepeatCmd oRepeatCmd = (RepeatCmd) m_vStack.lastElement();			// Add to the repeat cmd.			oRepeatCmd.add(oCmd);			// Start a new cmd block.			if (oCmd instanceof RepeatCmd)				m_vStack.push(oCmd);			// Pop repeat cmd off the stack.			if (oCmd instanceof EndRepeatCmd)				m_vStack.pop();		}	}