Ticket #3641: code cleanup before 4.8.18 release.

(dlg_adjust_position): don't change origin of non-centered dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-08-08 10:21:52 +03:00
parent 834c09a283
commit fb4f4674c7

View File

@ -701,13 +701,9 @@ dlg_adjust_position (const WDialog * h, int *y, int *x, int *lines, int *cols)
{
if ((w->pos_flags & WPOS_CENTER_HORZ) != 0)
*x = (COLS - *cols) / 2;
else
*x = w->x;
if ((w->pos_flags & WPOS_CENTER_VERT) != 0)
*y = (LINES - *lines) / 2;
else
*y = w->y;
if ((w->pos_flags & WPOS_TRYUP) != 0)
{