Hello Jean-Marc, > Thank you. I tried this. Even it solves above mentioned problem (unwanted > sliding when moving from the rightmost position of the math inset to the > below row, using right arrow), again it is not working for the mouse pointer > selections within the row. However it is good to remove those lines in > Cursor.cpp, which I have introduced.
I do not think that the previous patch you suggested for the bottom row has not solved the issue we had. I still can see that the current_row_ variable changes within a Math equation, when we use mouse pointer selection. To clarify the problem again, * When we select some other position using mouse pointer, when we are in a math inset bufferview draw(...) method gets called. Hence checkCursorLeftEdge(...) method gets called. * When we call "cur.setCurrentRow(&row);", it set left_edge_ to 0 (zero), which should not have been done. This happens due to the row changes and it is not equal to current_row_ * So the point that having the issue is calculating "row" variable in bufferview checkCursorLeftEdge(...). Which means, the fault is with the cur.bottomRow(). I am lacking of knowledge how to fix this and feel like that it is a long period that we are stuck at this point. But still keeps on trying. As you have also mentioned, what we want is the outer most row. That should also vary within a paragraph from row to row. Also it is not appropriate use something like textRow() as it causes problems in tables, because that that returns the inner Row object that contains the cursor. Thanks Hashini