summaryrefslogtreecommitdiff
path: root/src/corelib
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-10 12:12:01 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-10 12:14:13 +0200
commitd4583568ee4dfb78a36ce24b743da83a114643dd (patch)
treed4a5d226d14d0a7ebab9abc27e1fac9d02b33579 /src/corelib
parent579a1ee09ed495680d944faf59a1f3de696fe882 (diff)
downloadfpGUI-d4583568ee4dfb78a36ce24b743da83a114643dd.tar.xz
Alignment bugfix: TfpgWidget.DoAlign never checked if widget was visible or not
If widgets are not visible, they are not added to list of widgets that need to be re-aligned.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/fpg_widget.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/fpg_widget.pas b/src/corelib/fpg_widget.pas
index 572b5cbd..39bb4193 100644
--- a/src/corelib/fpg_widget.pas
+++ b/src/corelib/fpg_widget.pas
@@ -1226,7 +1226,7 @@ begin
if Components[n] is TfpgWidget then
begin
w := TfpgWidget(Components[n]);
- if w.Align = AAlign then
+ if (w.Align = AAlign) and (w.Visible) then
alist.Add(w);
end;