From: Theodore Tso Date: Tue, 5 Jan 1999 06:39:40 +0000 (+0000) Subject: cns.c (position_dialog): If the registry position for the window is X-Git-Tag: krb5-1.1-beta1~419 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b0e625c40badf0e24562bebcca682ec3d85df68;p=krb5.git cns.c (position_dialog): If the registry position for the window is all zeros, then default to centering the window in the correct place. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11103 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/windows/cns/ChangeLog b/src/windows/cns/ChangeLog index 1a835147f..402a88209 100644 --- a/src/windows/cns/ChangeLog +++ b/src/windows/cns/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 5 01:38:18 1999 Theodore Y. Ts'o + + * cns.c (position_dialog): If the registry position for the window + is all zeros, then default to centering the window in the + correct place. + 1998-05-27 Theodore Ts'o * Folded in enhancements from Cygnus's Kerbnet-1.2 (plus our diff --git a/src/windows/cns/cns.c b/src/windows/cns/cns.c index 8999d9f98..7af81fc6a 100644 --- a/src/windows/cns/cns.c +++ b/src/windows/cns/cns.c @@ -194,8 +194,8 @@ position_dialog(HWND hwnd) if (x > scrwidth || y > scrheight || - x + cx < 0 || - y + cy < 0) + x + cx <= 0 || + y + cy <= 0) center_dialog(hwnd); else MoveWindow(hwnd, x, y, cx, cy, TRUE);