Hi all,

I am recently involved in horizontal scrolling of rows where I work with
Math insets. There I found that bv.getPos(cur).x_ is not getting updated
just after entering a Math inset from left or right corners. 

What happens is, the above attribute resets to the left most cursor position
of that row. And after few mouse movements, it gives the correct value.
These mouse movements calls drawing method of TextMetrics.cpp.

Jean-Marc (my mentor) helped me a lot to figure out this error and mentioned
that this happens because that the positions of Math insets are calculated
while drawing. (Not before drawing) I failed to figure out the code segments
regarding this. When going reverse, it involves 'Point
BufferView::getPos(DocIterator const & dit) const', 'Point
BufferView::coordOffset(DocIterator const & dit) const'

I like to know if any of the developers has experienced this and has any
idea for a patch to overcome this bug. This would be really helpful in my
project and also in future developing work.

Thank you.
Hashini

Reply via email to