Index: pgadmin/frm/frmQuery.cpp
===================================================================
--- pgadmin/frm/frmQuery.cpp	(revision 7108)
+++ pgadmin/frm/frmQuery.cpp	(working copy)
@@ -304,7 +304,9 @@
     // Query box
     sqlQuery = new ctlSQLBox(this, CTL_SQLQUERY, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE | wxSIMPLE_BORDER | wxTE_RICH2);
     sqlQuery->SetDatabase(conn);
-    sqlQuery->SetMarginWidth(1, 16);
+    sqlQuery->SetMarginType(1, wxSTC_MARGIN_NUMBER);
+    sqlQuery->SetMarginWidth(1, ConvertDialogToPixels(wxPoint(16, 0)).x);
+
     SetLineEndingStyle();
 
     // Results pane