diff options
author | Theodore Tso <tytso@mit.edu> | 1999-01-05 06:39:40 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1999-01-05 06:39:40 +0000 |
commit | 2b0e625c40badf0e24562bebcca682ec3d85df68 (patch) | |
tree | b58fc0a6569556830a50d8f68765ebc2122bde95 /src/windows/cns/cns.c | |
parent | ee3a7528633657e0421b37b26a7fbd9ee3705293 (diff) | |
download | krb5-2b0e625c40badf0e24562bebcca682ec3d85df68.tar.gz krb5-2b0e625c40badf0e24562bebcca682ec3d85df68.tar.xz krb5-2b0e625c40badf0e24562bebcca682ec3d85df68.zip |
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
Diffstat (limited to 'src/windows/cns/cns.c')
-rw-r--r-- | src/windows/cns/cns.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |