giseldo/neodataset huggingface dataset:
DragManager crashes application


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

When we start an drag operation (ctl is dmAutomatic) inside form and form is closed in the meantime, lcl apps crashes.All widgetsets crashes because of that.<br/>
Example shows how and when it happens.

## Mantis conversion info:

- **Mantis ID:** 22067
- **Version:** 1.1 (SVN)
- **Fixed in version:** 1.1 (SVN)
- **Fixed in revision:** 37369 (#6dc8b8cf949043de5e1abed63d2657613beda119)

Story points: 100.0
Qt: TCustomTabControl sends too much resize events


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

TCustomTabControl sends too much resize events when form is started for the first time. Also, problem is that some of those events have ugly sizes (eg. it can be Rect(0,0,0,0)).

## Mantis conversion info:

- **Mantis ID:** 21805
- **Fixed in revision:** 36925 (#362e4674d293e46826f005de9883b2512cb0e7c7)
- **Target version:** 1.0.0
- **LazTarget:** 0.99.0

Story points: 100.0
Qt: TListView.OnItemChanged is completelly messed


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

When viewStyle = vsReport it triggers after mouse up, when viewStyle = vsList it triggers sometimes

## Mantis conversion info:

- **Mantis ID:** 21446
- **Version:** 0.9.31 (SVN)
- **Fixed in revision:** 35836 (#7ebe5af93878405d711d394317d67db6fe9c4bf1),35842 (#7d643c2a7702fcd8dec987efcb7f596c4a37ad00),35863 (#c0a39ccd1b03ae63878f66a1a08eb16683c03651),35864 (#202ad173157815b8a94b4a14a41532277578ed92)
- **Target version:** 0.99.0

Story points: 100.0
Gtk2 returns wrong ScreenToClient result


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

TGtk2WidgetSet.ScreenToClient always returns window position, but not client.

## Mantis conversion info:

- **Mantis ID:** 21366
- **Version:** 0.9.31 (SVN)
- **Fixed in revision:** 35574 (#a31497d03bd41a55332bb05b07e812afd9724332)
- **Monitored by:** » seier (Christian Blackburn)
- **Target version:** 0.99.0

Story points: 100.0
Qt: Modal windows minimizing misbehaviour under X11


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

Need 2 clicks onto minimize button of modal window to minimize complete app.<br/>
Problem exists when theres > 0 non modal forms opened and modal form over them.<br/>
Easy to reproduce: Open lazarus about box and click minimize button.<br/>
Gtk2 works fine, also qt on windows and carbon works fine, so this is X11 only issue.

## Mantis conversion info:

- **Mantis ID:** 20824
- **Version:** 0.9.31 (SVN)
- **Fixed in revision:** 33995 (#e2870d69ef4ed65c941bda3c92abd49b5a6dcd9b)
- **Target version:** 0.99.0

Story points: 100.0
Discrepancy when calling show (bringtofront) of designed form


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

Just open mentioned example and focus SE, so form is behind SE.<br/>
Press F12 - good it works fine.<br/>
Now, again focus SE and call that form via Laz IDE main menu Window->Form1 (click)<br/>
Form comes to front but it's resized ?!?<br/>
Original form is w320xh270<br/>
Now it's 787x560<br/>
Same thing happens with gtk2 and qt under linux.<br/>
Also you don't need to focus editor , just call that form with F12 and then click Window->Form1 ,same thing happens - form is resized.<br/>
Example is here: http://bugs.freepascal.org/view.php?id=20589

## Mantis conversion info:

- **Mantis ID:** 20595
- **Target version:** 0.99.0

Story points: 100.0
Using the grid's scrollbar may result in wrong cell coods


<h3><details><summary>Original Reporter info from Mantis: <small>Jesus @jramx</small></summary><small>

- **Reporter name:** Jesus Reyes
</small></details></h3>

## Description:

Reported by anton:

"it leads to incorrect Index and some bugs (mouse cursor is not changed to crHSplit when it must, column header click occurs for not correct columns etc.)<br/>
To reproduce these bugs you need grid with many columns"

Attached test project.

## Mantis conversion info:

- **Mantis ID:** 20461
- **Version:** 0.9.31 (SVN)
- **Fixed in version:** 0.9.31 (SVN)
- **Fixed in revision:** 32873 (#db602a17171a4e5fb4316fec3695587037b3a7f2)
- **Target version:** 0.99.0

Story points: 100.0
Revision 31470 breaks building Lazarus IDE


<h3><details><summary>Original Reporter info from Mantis: <small>Bart @flyingsheep</small></summary><small>

- **Reporter name:** Bart Broersma
</small></details></h3>

## Description:

r31470 changes the definiton of TWindowState in forms.pp to:<br/>
TWindowState = (wsNormal, wsMinimized, wsMaximized, wsFullScreen);<br/>
(line 69)

```
In ide/main.pp 
 6489   ShowCommands: array[TWindowState] of Integer =
 6490     (SW_SHOWNORMAL, SW_MINIMIZE, SW_SHOWMAXIMIZED);
```

will now raise a syntax error: <br/>
C:\lazarus\ide\main.pp(6490,50) Fatal: Syntax error, "," expected but ")" found

## Mantis conversion info:

- **Mantis ID:** 19659
- **Build:** r31470
- **Version:** 0.9.31 (SVN)
- **Fixed in revision:** 31475 (#97bd2af53610a5b69254bc138f57e6c7bc276df1)
- **Monitored by:** » dirks (Dirk Schiphorst)
- **Target version:** 0.9.31 (SVN)

Story points: 100.0
Qt: ugly palette behaviour of some controls


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

eg. set font color of form to clBlue, add TCheckBox on form, change font color of TCheckBox to clDefault - everything fine in design time.<br/>
In runtime, TCheckbox font color is always clBlue.<br/>
2nd example is ugly look of TScrollbars, if parent.font.color <> clDefault then scrollbar arrows gets that color - again very ugly.

## Mantis conversion info:

- **Mantis ID:** 19612
- **Version:** 0.9.31 (SVN)
- **Fixed in revision:** 31330 (#7789de2338225dc9866e93430f73291e1eff002a)

Story points: 100.0
QT: stay-on-top form left on screen, if whole app is minimized


<h3><details><summary>Original Reporter info from Mantis: <small>Martin @martin_frb</small></summary><small>

- **Reporter name:** Martin Friebe
</small></details></h3>

## Description:

Using the Lazarus IDE, and the "leak view" window.<br/>
The "leak view" window can be made "stay on top.

If you minimize the whole IDE (usin gthe minimize on the main-form, then:<br/>
\- With the w32 widgetset, the stay-on-top form disappears<br/>
\- With QT, it is left behind (while all other windows disappear)

That is QT under Windows.<br/>
Not tested with gtk2

## Mantis conversion info:

- **Mantis ID:** 19264
- **Version:** 0.9.31 (SVN)
- **Fixed in revision:** 31400 (#7af4c64f9d6b1e32a25df8e29a578f1643dff805)
- **Target version:** 0.99.0

Story points: 100.0
Find in files and replace destroys source files


<h3><details><summary>Original Reporter info from Mantis: <small>michael @mvancanneyt</small></summary><small>

- **Reporter name:** Michael Van Canneyt
</small></details></h3>

## Description:

Search Excercise and replace with Exercise 

```
 If you have 
  TSomeExcercise = Class(TExcercise)

Then you'll end up with
  TSomeExercise = Class(Exercisee)
```

i.e. the second occurrence is replaced, but the placement is offset by 1<br/>
character, presumably because the replace term is one character shorter as  <br/>
the search term. this is corroborated by the fact that

```  (TMyExcercise, TRunMyExcercise, TMyExcerciseHistory)```<br/>

is replaced by

```  (TMyExercise, TRunMExercisee, TExerciseseHistory)```<br/>

i.e. the third occurrence is replaced, 2 characters offset.

## Mantis conversion info:

- **Mantis ID:** 19001
- **Version:** 0.9.31 (SVN)
- **Fixed in revision:** 30049 (#dfb1e9eb0cda454f7aebbbc0bb2fbb1aea1d48ac)

Story points: 300.0
Strange IDE window behaviour OR closing modal form changes Z order


<h3><details><summary>Original Reporter info from Mantis: <small>michael @mvancanneyt</small></summary><small>

- **Reporter name:** Michael Van Canneyt
</small></details></h3>

## Description:

In the IDE under GTK2, modal IDE dialogs completely mess up the Z-order of IDE windows. This is extremely annoying, because after every property editor, you must look for the form/data module which you were editing.

## Steps to reproduce:

1. Start new project (application)<br/>
2. Drop TSQLQuery on TForm1. IDE looks as 'before' screenshot.<br/>
3. Edit SQL property of the TSQLQuery component. IDE looks as the 'During' screenshot. (notice how suddenly the code explorer has popped into view)<br/>
4. Press OK button. Dialog closes, and once more all windows are rearranged.<br/>
```  (see screenshot 'after') Note how TForm1 is hidden somewhere.```<br/>

## Mantis conversion info:

- **Mantis ID:** 18823
- **Platform:** Linux GTK2 
- **Version:** 0.9.31 (SVN)
- **Fixed in revision:** 34003 (#2ce9d7f56a45923396b77d752573a245eaeafad1)
- **Target version:** 0.99.0

Story points: 100.0
Build modes switching fails


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

When switch build modes via dropdown buton in IDE to win32 it won't compile, must open Project Options and click ok, then compiles ok.Switching back to linux  works ok.<br/>
Main OS is linux, cross compiling to win32.<br/>
IMPORTANT NOTE: SIMPLE FORM WITHOUT ANY COMPONENT WORKS FINE (SWITCHING).

Attached sample project contains TDBF component, so problem is reproducable all the time.<br/>
Lazarus 0.9.31 r28870 

## Mantis conversion info:

- **Mantis ID:** 18421
- **Version:** 0.9.29 (SVN)
- **Fixed in revision:** 28897 (#1b48dc89de30945cfac2ef41cf317f5b837d869b)

Story points: 100.0
Compiling error on "Clean Up + Build all"


<h3><details><summary>Original Reporter info from Mantis: <small>Kjow</small></summary><small>

- **Reporter name:** 
</small></details></h3>

## Description:

I noticed that this problem is present only when I do a "Clean Up   Buils all".<br/>
With "Build all" only, everything works fine.

Revisions.

Lazarus: 28857M<br/>
FPC 2.5.1: 16691

...<br/>
...<br/>
...<br/>
Compiling messagedialogs.pp<br/>
Compiling resource units\i386-win32\messagedialogs.or<br/>
Linking .\messagedialogs.exe<br/>
85 lines compiled, 0.7 sec , 1200960 bytes code, 287208 bytes data<br/>
C:/Develop/fpc/2.4.2/bin/i386-Win32/fpc.exe -gl<br/>
\-Fu../lcl/units/i386-win32 -Fu../lcl/units/i386-win32/win32<br/>
\-Fu../components/synedit/units/i386-win32<br/>
\-Fu../components/codetools/units/i386-win32 -Fu. -FE.<br/>
\-FUunits/i386-win32 -di386 notebk.pp<br/>
Free Pascal Compiler version 2.5.1 [2011/01/02] for i386<br/>
Copyright (c) 1993-2010 by Florian Klaempfl<br/>
Target OS: Win32 for i386<br/>
Compiling notebk.pp<br/>
Compiling notebku.pp<br/>
C:\Develop\lazarus\examples\notebku.pp(87,19) Error: Identifier not<br/>
found "PageCount"<br/>
C:\Develop\lazarus\examples\notebku.pp(104,19) Error: Identifier not<br/>
found "PageCount"<br/>
C:\Develop\lazarus\examples\notebku.pp(304,13) Error: identifier<br/>
idents no member "ShowTabs"<br/>
C:\Develop\lazarus\examples\notebku.pp(304,39) Error: identifier<br/>
idents no member "ShowTabs"<br/>
C:\Develop\lazarus\examples\notebku.pp(305,17) Error: identifier<br/>
idents no member "ShowTabs"<br/>
C:\Develop\lazarus\examples\notebku.pp(330,16) Error: identifier<br/>
idents no member "TabPosition"<br/>
C:\Develop\lazarus\examples\notebku.pp(331,16) Error: identifier<br/>
idents no member "TabPosition"<br/>
C:\Develop\lazarus\examples\notebku.pp(332,21) Error: identifier<br/>
idents no member "TabPosition"<br/>
C:\Develop\lazarus\examples\notebku.pp(333,16) Error: identifier<br/>
idents no member "TabPosition"<br/>
C:\Develop\lazarus\examples\notebku.pp(334,21) Error: identifier<br/>
idents no member "TabPosition"<br/>
C:\Develop\lazarus\examples\notebku.pp(335,16) Error: identifier<br/>
idents no member "TabPosition"<br/>
C:\Develop\lazarus\examples\notebku.pp(336,21) Error: identifier<br/>
idents no member "TabPosition"<br/>
C:\Develop\lazarus\examples\notebku.pp(337,16) Error: identifier<br/>
idents no member "TabPosition"<br/>
C:\Develop\lazarus\examples\notebku.pp(343) Fatal: There were 13<br/>
errors compiling module, stopping

## Additional information:

Don't care about path / FPC version mismatch, it's a misprint.

## Mantis conversion info:

- **Mantis ID:** 18375
- **Version:** 0.9.31 (SVN)
- **Fixed in version:** 0.9.31 (SVN)
- **Fixed in revision:** 28916 (#76f0a18ff029e9b8e00daa63481237819ca74cd2)
- **Target version:** 0.99.0

Story points: 100.0
Can't build ide


<h3><details><summary>Original Reporter info from Mantis: <small>bonmario @bonmario</small></summary><small>

- **Reporter name:** Mario Bonati
</small></details></h3>

## Description:

Hi, i'm trying to build ide (SVN 28612) with commands:<br/>
make bigideclean<br/>
make bigide


This is the error:<br/>
Compiling lazbuild.lpr<br/>
lazbuild.lpr(467,84) Error: Wrong number of parameters specified for call to "GetIDEInstallPackageOptions"<br/>
lazbuild.lpr(1277) Fatal: There were 1 errors compiling module, stopping<br/>
Fatal: Compilation aborted


Hi, Mario

## Mantis conversion info:

- **Mantis ID:** 18147
- **OS:** Linux
- **OS Build:** 10.10
- **Build:** SVN 28612
- **Platform:** Ubuntu
- **Version:** 0.9.29 (SVN)
- **Target version:** 0.9.30

Story points: 300.0
Cannot build lazarus with -dDebug (make bigide) because of tchart


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

Range check fails in tafuncseries.pas line 288.

## Mantis conversion info:

- **Mantis ID:** 18018
- **Version:** 0.9.29 (SVN)
- **Fixed in revision:** 28525 (#afcd16b76caf028b17d6388b0db9ba4c082c36a6)
- **Target version:** 0.9.30

Story points: 200.0
Revision 28130 will not compile.


<h3><details><summary>Original Reporter info from Mantis: <small>Bart @flyingsheep</small></summary><small>

- **Reporter name:** Bart Broersma
</small></details></h3>

## Description:

Tried to build r28130.<br/>
Got error: syncompletion.pas(162,74) Error: Identifier not found "WM_MOUSEWHEEL"

## Additional information:

Linux GTK2 fpc 2.4.0

## Mantis conversion info:

- **Mantis ID:** 17872
- **OS:** Suse Linux
- **OS Build:** 10.0
- **Build:** revision 28130
- **Platform:** i386
- **Version:** 0.9.29 (SVN)
- **Fixed in version:** 0.9.29 (SVN)
- **Fixed in revision:** 28132 (#1730103b56f5f094b1aa34652a137751bc8c7b3b)
- **Target version:** 0.9.30

Story points: 100.0
Regression: IDE -> Project options -> InvalidatePreferredSize loop  detected


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

TControl.InvalidatePreferredSize loop detected ButtonPanel:TButtonPanel Bounds=l=6,t=578,r=825,b=612.

Press OK to ignore and risk data corruption.<br/>
Press Cancel to kill the program.

Lazarus 0.9.29 r27967 FPC 2.4.1

## Additional information:

```
TApplication.HandleException TControl.InvalidatePreferredSize loop detected ButtonPanel:TButtonPanel Bounds=l=6,t=578,r=825,b=612
  Stack trace:
  $081D73EE  RAISELOOP,  line 4695 of ./include/control.inc
  $081D72FB  TCONTROL__INVALIDATEPREFERREDSIZE,  line 4711 of ./include/control.inc
  $081CE3E5  TCONTROL__DOSETBOUNDS,  line 450 of ./include/control.inc
  $081C416B  TWINCONTROL__DOSETBOUNDS,  line 3731 of ./include/wincontrol.inc
  $081CDD7D  TCONTROL__CHANGEBOUNDS,  line 380 of ./include/control.inc
  $081D6E6E  TCONTROL__SETBOUNDSKEEPBASE,  line 4542 of ./include/control.inc
  $081C2A58  DOPOSITION,  line 2974 of ./include/wincontrol.inc
  $081C2269  DOALIGN,  line 3087 of ./include/wincontrol.inc
  $081C1DD3  TWINCONTROL__ALIGNCONTROLS,  line 3166 of ./include/wincontrol.inc
  $081C8AA1  TWINCONTROL__ALIGNCONTROL,  line 6159 of ./include/wincontrol.inc
  $081D1D03  AUTOSIZECONTROL,  line 2368 of ./include/control.inc
  $081D1D38  AUTOSIZECONTROL,  line 2370 of ./include/control.inc
  $081D1AD2  TCONTROL__DOALLAUTOSIZE,  line 2413 of ./include/control.inc
  $081C3940  TWINCONTROL__DOALLAUTOSIZE,  line 3475 of ./include/wincontrol.inc
  $081D7673  TCONTROL__ENABLEAUTOSIZING,  line 4801 of ./include/control.inc
  $081D4C79  TCONTROL__SETVISIBLE,  line 3680 of ./include/control.inc
  $0808089F  TCUSTOMFORM__SETVISIBLE,  line 404 of ./include/customform.inc
```

## Mantis conversion info:

- **Mantis ID:** 17764
- **Version:** 0.9.29 (SVN)
- **Fixed in revision:** 27972 (#5c25c80665b750be3c6ab35055666830678a6a3b)
- **Target version:** 0.9.30

Story points: 200.0
Regression: ActiveControl is wrong as of r27900


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

ActiveControl setted up during design time isn't respected anymore because of r27900. Now it always calls FindDefaultForActiveControl() but it shouldn't if ActiveControl is already assigned.Before r27900 everything is ok.

## Mantis conversion info:

- **Mantis ID:** 17740
- **Fixed in revision:** 27925 (#e8bc52f11adb69c6d31abc2ab1f7210f8e050f71)
- **Target version:** 0.9.30

Story points: 100.0
Qt: QTreeWidget (TListView with vsReport style) bug with inserting items in the middle of the list.


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

eg. moving items in TListView, delete item from index 1 -> insert that item to pos 5 etc.<br/>
QTreeWidget is completely broken here, items captions from TListView completely diffs from QTreWidget items texts.<br/>
I've already fixed this bug, but opened it to easy track if it raises some new (other) bug in current implementation.

## Mantis conversion info:

- **Mantis ID:** 17650
- **Fixed in revision:** 27742 (#08bb81fce38b49acc2f6809520d0302e285e2a92)

Story points: 200.0
Gtk2: RawImage ops are wrong


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

Try examples/dragimagelist under gtk2, and drag that button.<br/>
Image is much smaller (width and height are much smaller), under qt and others it's ok.

## Mantis conversion info:

- **Mantis ID:** 17601
- **Version:** 0.9.29 (SVN)

Story points: 100.0
Patch to fix compilation for the fpc-xpcom branch


<h3><details><summary>Original Reporter info from Mantis: <small>Joost</small></summary><small>

- **Reporter name:** Joost van der Sluis
</small></details></h3>

## Description:

There is a fpc-xpcom-branch in which the definition of IInterface has been changed and the constref keyword is introduced. This patch will make Lazarus compile with both the xpcom branch, and other fpc-versions.

This patch should be applied before I merge the xpcom branch to fpc-trunk, so that Lazarus' compilation will not fail when that happens.

## Mantis conversion info:

- **Mantis ID:** 17594
- **Version:** 0.9.29 (SVN)
- **Fixed in version:** 0.9.29 (SVN)
- **Fixed in revision:** 27667 (#6a2f27cac203eaebe85f1319ae552f3bc8bddfca)
- **Target version:** 0.9.30

Story points: 200.0
roIgnoreFieldNotFound=true  option makes aggregation function not working


<h3><details><summary>Original Reporter info from Mantis: <small>forest</small></summary><small>

- **Reporter name:** Boguslaw Brandys
</small></details></h3>

## Description:

When in TfrReport.Options there is roIgnoreFieldNotFound=true  option it disable any aggregation function used in group footer band .While any static text appear in group footer any computed value is empty

## Steps to reproduce:

I created a project using ODBC connection from sqldb suite thinking it is a problem with recordcount maybe but finally it seems the internal logic of group band is broken.

## Mantis conversion info:

- **Mantis ID:** 17452
- **OS:** windows xp home
- **OS Build:** 32-bit
- **Build:** Lazarus 0.9.29 r27372 FPC 2.5.1 
- **Platform:** windows
- **Version:** 0.9.29 (SVN)
- **Fixed in version:** 0.9.29 (SVN)
- **Fixed in revision:** 27429 (#1a459cb90ca678e0036939b52103f691bc1c6877)
- **Target version:** 0.9.30

Story points: 100.0
ScrollBox.VertScrollBar.Position values don't save


<h3><details><summary>Original Reporter info from Mantis: <small>GAMER</small></summary><small>

- **Reporter name:** Miroslav Nyameshchuk
</small></details></h3>

## Description:

ScrollBox.VertScrollBar.Position values (in object inspector) don't save after reopen project or form. Always =0 after open form.

## Mantis conversion info:

- **Mantis ID:** 17409
- **Version:** 0.9.29 (SVN)
- **Fixed in version:** 0.9.31 (SVN)
- **Fixed in revision:** 30220 (#5e397ae58328a1f76f6afdf41eb24b2c86d7c11c)
- **Target version:** 0.99.0

Story points: 100.0
TGtk2WidgetSet.WindowFromPoint() returns wrong results


<h3><details><summary>Original Reporter info from Mantis: <small>zeljko@holobit.net @zeljan1</small></summary><small>

- **Reporter name:** Zeljan Rikalo
</small></details></h3>

## Description:

When we use WindowFromPoint(P) in our app it returns handle from control under mouse pointer, in case of gtk2 returned handle cannot be found by FindControl() for some controls. eg. TCustomForm, TPanel, TTreeView etc.<br/>
Also, WindowFromPoint() in gtk2 case can return invisible or disabled control but shouldn't.

## Mantis conversion info:

- **Mantis ID:** 17389
- **Version:** 0.9.29 (SVN)
- **Fixed in revision:** 27311 (#294038735076bffba4685d96ab1f11759b5f316d),28288 (#9815e521d3f8d53de5cf0159c2a202344e454a94)
- **Target version:** 0.9.30

Story points: 100.0
TDbGrid crash when connected to empty result of TSQlQuery


<h3><details><summary>Original Reporter info from Mantis: <small>forest</small></summary><small>

- **Reporter name:** Boguslaw Brandys
</small></details></h3>

## Description:

Crash occur when SQL returned with empty set because for example table is empty.Error Canvas does not allow drawing

## Mantis conversion info:

- **Mantis ID:** 17067
- **OS:** windows xp home
- **OS Build:** 32-bit
- **Build:** Lazarus 0.9.29 r26906 FPC 2.5.1 
- **Platform:** windows
- **Fixed in version:** 0.9.29 (SVN)
- **Target version:** 0.9.30

Story points: 100.0