From e182e1afbdd32fd6365b4adbb8920eb8910e4749 Mon Sep 17 00:00:00 2001 From: lsv Date: Fri, 19 Jun 2026 16:04:09 +0500 Subject: [PATCH] fix copy diff to HTML. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Не копировался удаленный текст если он был в конце исходного текста. --- ctl/ctlSQLBox.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ctl/ctlSQLBox.cpp b/ctl/ctlSQLBox.cpp index 806a1d8..6ee8607 100644 --- a/ctl/ctlSQLBox.cpp +++ b/ctl/ctlSQLBox.cpp @@ -1893,6 +1893,7 @@ wxString ctlSQLBox::TextToHtml(int start, int end,bool isAddNewLine, const std:: int textlen=GetTextLength(); bool refreshgbcolor=false; bool newlineadd=false; + wxString bgclrDel="#ebb1c4"; while (k=pos) { if (GetSimpleMode()) { // this compare dialog Append Delete text - wxString bgclrDel="#ebb1c4"; + if (newlineadd) { size_t p44=0,p45=0; wxString searchStr = "
"; @@ -1995,6 +1996,7 @@ wxString ctlSQLBox::TextToHtml(int start, int end,bool isAddNewLine, const std:: newlineadd=false; str += lstr; lstr=""; + if (k==lenstr && pos==lenstr) str+=wxString::Format("%s",bgclrDel, obj); } str+= wxT(""); return str;