View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0036436 | Lazarus | Widgetset | public | 2019-12-13 19:48 | 2019-12-14 13:49 |
Reporter | Chris Rorden | Assigned To | Juha Manninen | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Intel 4770k | OS | Ubuntu | ||
Product Version | 2.1 (SVN) | ||||
Summary | 0036436: GTK3: TComboBox csDropDownList selection crashes application | ||||
Description | With GTK3, selecting an item in a TComboBox where the style is csDropDownList causes the application to crash. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | r62383 | ||||
LazTarget | - | ||||
Widgetset | GTK 3 | ||||
Attached Files |
|
|
|
|
try the attached fix. cmb.diff (606 bytes)
Index: lcl/interfaces/gtk3/gtk3cellrenderer.pas =================================================================== --- lcl/interfaces/gtk3/gtk3cellrenderer.pas (revision 62382) +++ lcl/interfaces/gtk3/gtk3cellrenderer.pas (working copy) @@ -272,6 +272,7 @@ // writeln('1.minimumheight ',AMinHeight,' naturalheight ',ANaturalHeight,' min ',dbgs(minimum_height <> nil),' nat ',dbgs(natural_height <> nil)); AWinControl := GetControl(cell, widget); + if AWinControl = nil then exit; if [csDestroying,csLoading]*AWinControl.ComponentState<>[] then exit; if AWinControl is TCustomListbox then |
|
I came up with the same solution as CudaText man. I added the same test everywhere GetControl() was called + simplified the function a little. Thanks for the patch anyway! A question is why Nil was returned as a TWinControl. Anyway, it works now. BTW, is CudaText man the same as Alexey T.? |
|
Thanks for the rapid fix. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-12-13 19:48 | Chris Rorden | New Issue | |
2019-12-13 19:48 | Chris Rorden | File Added: csDropDownList.zip | |
2019-12-13 21:34 | CudaText man | File Added: cmb.diff | |
2019-12-13 21:34 | CudaText man | Note Added: 0119825 | |
2019-12-13 22:55 | Juha Manninen | Assigned To | => Juha Manninen |
2019-12-13 22:55 | Juha Manninen | Status | new => assigned |
2019-12-13 22:59 | Juha Manninen | Status | assigned => resolved |
2019-12-13 22:59 | Juha Manninen | Resolution | open => fixed |
2019-12-13 22:59 | Juha Manninen | Fixed in Revision | => r62383 |
2019-12-13 22:59 | Juha Manninen | LazTarget | => - |
2019-12-13 22:59 | Juha Manninen | Widgetset | GTK 3 => GTK 3 |
2019-12-13 22:59 | Juha Manninen | Note Added: 0119827 | |
2019-12-13 23:01 | Juha Manninen | Note Edited: 0119827 | View Revisions |
2019-12-14 13:49 | Chris Rorden | Status | resolved => closed |
2019-12-14 13:49 | Chris Rorden | Note Added: 0119839 |