diff options
-rw-r--r-- | src/windows/cns/ChangeLog | 6 | ||||
-rw-r--r-- | src/windows/cns/cns.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/windows/cns/ChangeLog b/src/windows/cns/ChangeLog index 1a835147f5..402a882091 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 <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 diff --git a/src/windows/cns/cns.c b/src/windows/cns/cns.c index 8999d9f98c..7af81fc6ad 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); |