Merged revision(s) 44231 #67012e954c from trunk:

LCL, grids, check for changes in ClientRect, issue #24724, #25489
........

git-svn-id: branches/fixes_1_2@44258 -
This commit is contained in:
maxim 2014-02-26 19:58:39 +00:00
parent 6df93fb994
commit d7606f2b34

View File

@ -3446,7 +3446,9 @@ begin
R := Canvas.ClipRect;
DebugLn('TCustomGrid.Paint %s Row=%d Clip=%s',[DbgSName(Self),Row,Dbgs(R)]);
{$endif}
if [gfVisualChange,gfClientRectChange]*fGridFlags<>[] then begin
if ([gfVisualChange,gfClientRectChange]*fGridFlags<>[]) or
(ClientWidth<>FGCache.ClientWidth) or
(ClientHeight<>FGCache.ClientHeight) then begin
{$ifdef DbgVisualChange}
DebugLnEnter('Resetting Sizes in Paint INIT');
{$endif}