Hello All,

When I replace the line;
RowPainter rp(pi, *text_, pit, row, bidi, x, y);
in TextMetrics.cpp with following few lines:

int inc_x=x;
if(cur.pos()>0)
   inc_x-=100;
RowPainter rp(pi, *text_, pit, row, bidi, inc_x, y);

what I expected was; when I move the cursor using right arrow beginning from
the left most edge the row (where the cursor lies in) will shift left by 100
units. But I cannot see any single row movement; instead the whole page (all
the rows) got shifted.

What can be the reason behind this? 

Is it because that every row sees their cursor position as the active cursor
position? For a single row movement do I need to check that the cursor lies
on the required row (within the if statement)? 

If so, how can is there a straight forward way to check whether the cursor
lies in a particular row? I searched for it in Cursor.cpp and could not find
a public method that helps this.

Thanks
Hashini 

Reply via email to