Copy screenshot context help press 's'.fix asserts.

Копирование окна контекстной помощи в буфер обмена по нажатию 's'.
This commit is contained in:
lsv 2026-03-04 11:53:56 +05:00
parent e54809faf2
commit 2989801a84
4 changed files with 47 additions and 2 deletions

View file

@ -522,7 +522,7 @@ int ctlSQLGrid::CopyTableToHtml(wxString htmlquery) {
if (isRowsArray) rowPos = rows.Item(i);
if (GetRowSize(rowPos) == 0) continue;
htm += "<tr>\n";
htm += wxString::Format("<td id=\"cn\"><pre>%d</pre></td>", rowPos + 1);
htm += wxString::Format("<td id=\"cn\"><pre>%ld</pre></td>", rowPos + 1);
for (int c = 0; c < cols.Count(); c++) {
wxString text = GetCellValue(rowPos, cols[c]);
htm += wxString::Format("<td id=\"c%d\"><pre>%s</pre></td>", c, escapeHtml(text, true));