summaryrefslogtreecommitdiff
path: root/src/corelib/x11
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-05-09 10:32:29 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-05-09 10:32:29 +0000
commit1805b503d2f564c8c7fc95478827a6d5b0aad4e8 (patch)
treeb71aed46809b085e2659f659568b8b92e1c47247 /src/corelib/x11
parenta461d3206b5625fb7a45cafa218495ea59868927 (diff)
downloadfpGUI-1805b503d2f564c8c7fc95478827a6d5b0aad4e8.tar.xz
* Fixed bug where program crashed if MainMenu contains no items and you click on it.
* Fixed bug where components can't be created and Visible = False.
Diffstat (limited to 'src/corelib/x11')
-rw-r--r--src/corelib/x11/gfx_x11.pas3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/x11/gfx_x11.pas b/src/corelib/x11/gfx_x11.pas
index cb29ffaf..d507ecb5 100644
--- a/src/corelib/x11/gfx_x11.pas
+++ b/src/corelib/x11/gfx_x11.pas
@@ -1314,7 +1314,7 @@ begin
if HandleIsValid then
Exit; //==>
- if aparent <> nil then
+ if AParent <> nil then
pwh := TfpgWindowImpl(AParent).WinHandle
else
pwh := xapplication.RootWindow;
@@ -1328,7 +1328,6 @@ begin
end;
AdjustWindowStyle;
-
wh := XCreateWindow(xapplication.Display, pwh,
FLeft, FTop, FWidth, FHeight, 0,
CopyFromParent,