mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
bug fix
correct font
This commit is contained in:
parent
0b39fb9f92
commit
96a96b448c
3 changed files with 11 additions and 3 deletions
|
|
@ -1215,8 +1215,10 @@ void ctlSQLBox::Copy() {
|
|||
wxString tColor;
|
||||
wxFont fntSQLBox = settings->GetSQLFont();
|
||||
wxString fontName = fntSQLBox.GetFaceName();
|
||||
wxString sz;
|
||||
sz.Printf("%d",fntSQLBox.GetPixelSize().GetHeight() );
|
||||
|
||||
str=wxT("<font face=\"")+fontName+wxT("\">");
|
||||
str=wxT("<div style=\"font-family: ")+fontName+wxT("; font-size: "+sz+"px\"><font>");
|
||||
int k=0;
|
||||
int l=1;
|
||||
while (startp<endp) {
|
||||
|
|
@ -1234,7 +1236,7 @@ void ctlSQLBox::Copy() {
|
|||
startp=startp+l;
|
||||
k++;
|
||||
}
|
||||
str=str+wxT("</font>");
|
||||
str=str+wxT("</font></div>");
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue