WPCubed Product Support

CombineCellsVertHorz + strange borders

WPTools version 6.13

Assume the following code:

TParagraph* createCell(TParagraph* aRow) {  TParagraph* cell(aRow->AppendNewCell(true));  cell->ASet(WPAT_BorderFlags, WPBRD_DRAW_Left + WPBRD_DRAW_Top + WPBRD_DRAW_Bottom + WPBRD_DRAW_Right);  return cell;}void test() {  TParagraph* table(Editor->FirstPar->AppendNewPar(false));  table->ParagraphType = wpIsTable;  TParagraph* row1(table->AppendNewRow(true));  TParagraph* cell11(createCell(row1));  TParagraph* cell12(createCell(row1));  TParagraph* row2(table->AppendNewRow(true));  TParagraph* cell21(createCell(row2));  TParagraph* cell22(createCell(row2));  Editor->EditOptionsEx = (TWPEditOptionsEx(Editor->EditOptionsEx) << wpKeepCellsWhenCombiningCells); // <insert code here>}

Now if I do the following at the end of the test function:

Editor->SelectCell(cell11, false);  Editor->SelectCell(cell21, true);  Editor->CombineCellsVertHorz();

I get the following table (note the double line):

+-------+-------+|       |       |+       +=======+|       |       |+-------+-------+

If I instead do the following at the end of the test function:

Editor->SelectCell(cell12, false);  Editor->SelectCell(cell22, true);  Editor->CombineCellsVertHorz();

I get the following table (note the missing line):

+-------+-------+
|       |       |
+-------+       +
|       |       |
+-------+       +

So, I'm misusing something or is there a bug in wptools?

Regards
patrik.nyborg(a)genicore.se

#1 ♥ 0
3.8k Views 2 users read 2 min

So, should the silence be interpreted as ASSIGNED, FIXED, WORKSFORME or WONTFIX (fix it yourself)?

Regards
patrik.nyborg(a)genicore.se

#2 ♥ 0
support

The silence means "missed this old post, was burried in others" ._)

But in fact I had worked on this and it looks ok now. I am running V6.13.3 now.

Julian

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