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;