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
+Tue Jan 5 01:38:18 1999 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * 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 <tytso@rsts-11.mit.edu>
* Folded in enhancements from Cygnus's Kerbnet-1.2 (plus our
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);