diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-17 11:47:01 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-07-17 11:47:01 +0000 |
commit | 60420d5e337bbd62fe05613c269e9ebecca6aad8 (patch) | |
tree | 7b2382e8b0a24b4065e5ce50aa3698f34e33ee8d /src/gui | |
parent | 742c2eccb4c96ba8bd2bf37a60ddb10e4d552d3d (diff) | |
download | fpGUI-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.pas | 3 |
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; |