WPCubed Product Support

In Table Cursor navigation Hangs WPRichText

Hi Julian,

While processing a number of RTF files with Tables, i found that TWPRichText can load and render it, but when I tried to navigate from Bottom to top using the cursor (Up arrow key only) it seems to get stuck in TWPRTFDataCursor.MoveUpLine function

repeat
              row := row.PrevPar;
              if row <> nil then
              begin
                if colnr >= row.ColCount then row := row.ColLast
                else row := row.Cols[colnr];
              end;
            until (row = nil) or not (paprRowMerge in row.prop);

This occurs when I tried moving up from a merged cell. Try moving from bottom of the document to top and you should be able to replicate it.

Updated URL:
[](http://203.122.35.253/wptools5/AA0201001.rtf)

This problem can also be seen in the WPTools Demo application.

#1 ♥ 0
3k Views 1 links 2 users read 1 min

Thank You,

row := row.PrevPar;

must be changed to

if paprIsTable in row.prop then row := row.ParentRow.PrevPar else row := row.PrevPar;

Julian

#2 ♥ 0
This category is archived. No new posts are possible.