From bb567be9d0b4dc99e815ee4d7cef8791527e211c Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 20 Feb 2013 18:16:00 +0100 Subject: [PATCH] Fix testing for valid window placement Xaw --- xaw/xoptions.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xaw/xoptions.c b/xaw/xoptions.c index d0fdafc..f70e80f 100644 --- a/xaw/xoptions.c +++ b/xaw/xoptions.c @@ -1231,7 +1231,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent XtSetArg(args[j], XtNheight, (Dimension) (wp[dlgNr]->height)); j++; XtSetArg(args[j], XtNwidth, (Dimension) (wp[dlgNr]->width)); j++; } - if(wp[dlgNr]->width > 0 && wp[dlgNr]->y > 0) { + if(wp[dlgNr]->x > 0 && wp[dlgNr]->y > 0) { XtSetArg(args[j], XtNx, (Position) (wp[dlgNr]->x)); j++; XtSetArg(args[j], XtNy, (Position) (wp[dlgNr]->y)); j++; } -- 1.7.0.4