From 0a5beb03d4794bd92923dccf84541a52a678aa72 Mon Sep 17 00:00:00 2001
From: olshevskiy87 <olshevskiy87@bk.ru>
Date: Sat, 4 Jul 2015 14:18:50 +0400
Subject: [PATCH] t.33

---
 pgadmin/dlg/dlgProperty.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pgadmin/dlg/dlgProperty.cpp b/pgadmin/dlg/dlgProperty.cpp
index 1f4d6a6..e869dbf 100644
--- a/pgadmin/dlg/dlgProperty.cpp
+++ b/pgadmin/dlg/dlgProperty.cpp
@@ -2000,7 +2000,7 @@ void dlgDefaultSecurityProperty::AddUsers(ctlComboBox *combobox)
 void dlgDefaultSecurityProperty::OnChangeSize(wxSizeEvent &ev)
 {
 	wxSize l_size = ev.GetSize();
-	if (defaultSecurityPage && l_size.GetWidth() > 10 && l_size.GetWidth() > 25)
+	if (defaultSecurityPage && l_size.GetWidth() > 10 && l_size.GetHeight() > 25)
 		defaultSecurityPage->SetSize(l_size.GetWidth() - 10, l_size.GetHeight() - 25);
 	dlgSecurityProperty::OnChangeSize(ev);
 }
-- 
1.9.5.msysgit.1

