Abdelrazak Younes wrote:
I am blocked at TextPainter. So either I add BufferView to its
constructor or I pass BufferView to all drawT() methods. I think I
prefer the first solution. Or even better, get rid of TextPainter.
I found another solution. The only problematic code was in MathData.C:
void MathArray::drawT(TextPainter & pain, int x, int y) const
{
//lyxerr << "x: " << x << " y: " << y << ' ' << pain.workAreaHeight()
<< endl;
//setXY(bv, x, y); // <- code commented out by me!
for (const_iterator it = begin(), et = end(); it != et; ++it) {
(*it)->drawT(pain, x, y);
//x += (*it)->width_;
x += 2;
}
}
My problem is that setXY() needs a BufferView with my change. So I just
commented out this call which, if I'm right is not useful because
drawT() is for text export and has nothing to do with painting on
screen. I guess this call to setXY was just copy&paste from the draw()
method.
Georg, you worked recently for the text export feature. Are you able to
confirm my findings?
Abdel.