Segment currentLine = painter.currentLine;
Segment lineSegment = painter.currentLine;
	public int offsetToX(int line, int offset)	{		TokenMarker tokenMarker = getTokenMarker();		/* Use painter's cached info for speed */		TextAreaPainter painter = textArea.getPainter();		FontMetrics fm = painter.getFontMetrics();		Segment currentLine = painter.currentLine;		if(painter.currentLineIndex != line)		{			getLineText(line,currentLine);			painter.currentLineIndex = line;		}		if(tokenMarker == null)		{			int oldCount = currentLine.count;			currentLine.count = offset;			int x = Utilities.getTabbedTextWidth(currentLine,				fm,0,painter,0);			currentLine.count = oldCount;			return x + textArea.getHorizontalOffset();		}		else			return 0;	}