summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-07-18 13:10:28 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-07-18 13:10:28 +0000
commitcfae57647a51dcc760f526085276db45d8ccd885 (patch)
treec01067b29a11fb0ac1d5084fab3f3a938d201856 /src/gui
parent0af8a64c03213270d6932a56d48783f6e7e4740a (diff)
downloadfpGUI-cfae57647a51dcc760f526085276db45d8ccd885.tar.xz
* Minor fix in the CustomGrid SetRowCount and SetColumnCount methods. Even if those properties are set between BeginUpdate/EndUpdate calls.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui_customgrid.pas12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/gui_customgrid.pas b/src/gui/gui_customgrid.pas
index 4b0db99c..0efa0edb 100644
--- a/src/gui/gui_customgrid.pas
+++ b/src/gui/gui_customgrid.pas
@@ -188,8 +188,10 @@ begin
end;
end;
- if csUpdating in ComponentState then
- Exit;
+ // graemeg 2008-07-18: I believe after all the repaint and event fixes
+ // this check is not required anymore.
+// if csUpdating in ComponentState then
+// Exit;
UpdateScrollBars;
RePaint;
end;
@@ -203,8 +205,10 @@ begin
FocusRow := FRowCount-1;
DoSetRowCount(AValue); // could be implemented by descendants
- if csUpdating in ComponentState then
- Exit;
+ // graemeg 2008-07-18: I believe after all the repaint and event fixes
+ // this check is not required anymore.
+// if csUpdating in ComponentState then
+// Exit;
UpdateScrollBars;
RePaint;
end;