diff --git a/ctl/ctlSQLGrid.cpp b/ctl/ctlSQLGrid.cpp index 0722b62..e5b74a2 100644 --- a/ctl/ctlSQLGrid.cpp +++ b/ctl/ctlSQLGrid.cpp @@ -410,7 +410,7 @@ int ctlSQLGrid::CopyTableToHtml(wxString htmlquery) { "
" "\n" ""; - + htm.Replace("90%", wxString::Format("%dpx", sumWidth)); + htm += htmlquery; htm += "%d | ",i+1);
+ htm += wxString::Format("%d | ", rowPos +1);
for (int c = 0; c < cols.Count(); c++) {
- wxString text = GetCellValue(i, cols[c]);
+ wxString text = GetCellValue(rowPos, cols[c]);
htm += wxString::Format("%s | ", c, escapeHtml(text,true));
}
htm += "