summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-07-17 11:47:01 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-07-17 11:47:01 +0000
commit60420d5e337bbd62fe05613c269e9ebecca6aad8 (patch)
tree7b2382e8b0a24b4065e5ce50aa3698f34e33ee8d /src/gui
parent742c2eccb4c96ba8bd2bf37a60ddb10e4d552d3d (diff)
downloadfpGUI-60420d5e337bbd62fe05613c269e9ebecca6aad8.tar.xz
* Added extra safety in the Grid Scrollbar handling. * Replaced magic numbers with ModalResult constants.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui_basegrid.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/gui_basegrid.pas b/src/gui/gui_basegrid.pas
index afc48000..7c86753d 100644
--- a/src/gui/gui_basegrid.pas
+++ b/src/gui/gui_basegrid.pas
@@ -698,7 +698,8 @@ begin
Exit; //==>
if csUpdating in ComponentState then
Exit; //==>
- UpdateScrollBars;
+ if HasHandle then
+ UpdateScrollBars;
end;
procedure TfpgBaseGrid.HandleKeyPress(var keycode: word;