View Issue Details

IDProjectCategoryView StatusLast Update
0031684LazarusLCLpublic2017-04-20 18:50
ReporterAndrey Zubarev Assigned ToZeljan Rikalo  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Summary0031684: AV in TQtWSWinControl.ShowHide
DescriptionCall stack:

#0 SHOWHIDE(0x7fffe380a0f0, 0x7fffe3809ab0) at qt/qtwscontrols.pp:636
0000001 DOSENDSHOWHIDETOINTERFACE(0x7fffe3809ab0) at include/wincontrol.inc:8364
0000002 CMSHOWINGCHANGED(0x7fffe3809ab0, {MSG = 45081, UNUSEDMSG = 0, WPARAM = 0, LPARAM = 0, RESULT = 0}) at include/wincontrol.inc:8552
0000003 SYSTEM$_$TOBJECT_$__$$_DISPATCH$formal at :0
0000004 ?? at :0
0000005 .Ld228 at :0
0000006 ?? at :0
0000007 ?? at :0
0000008 ?? at :0
0000009 ?? at :0
0000010 ?? at :0

Fix:
Index: lcl/interfaces/qt/qtwscontrols.pp
===================================================================
--- lcl/interfaces/qt/qtwscontrols.pp (revision 54646)
+++ lcl/interfaces/qt/qtwscontrols.pp (working copy)
@@ -632,7 +632,7 @@
   if AWinControl.HandleObjectShouldBeVisible and
     (LowerCase(AWinControl.Font.Name) = 'default') then
   begin
- if AWinControl.IsParentFont then
+ if (AWinControl.IsParentFont)and(assigned(AWinControl.Parent)) then
       SetFont(AWinControl, AWinControl.Parent.Font) {DO NOT TOUCH THIS PLEASE !}
     else
       SetFont(AWinControl, AWinControl.Font); {DO NOT TOUCH THIS PLEASE !}
TagsNo tags attached.
Fixed in Revision54654
LazTarget-
WidgetsetQT, QT5
Attached Files

Activities

Zeljan Rikalo

2017-04-20 18:05

developer   ~0099711

Please test and close if ok.
Note: I've copied all changes from qt4 to qt5, in any case both changes goes to 1.8 fixes.

Andrey Zubarev

2017-04-20 18:50

reporter   ~0099713

Thanks!

Issue History

Date Modified Username Field Change
2017-04-20 06:19 Andrey Zubarev New Issue
2017-04-20 10:16 Zeljan Rikalo Assigned To => Zeljan Rikalo
2017-04-20 10:16 Zeljan Rikalo Status new => assigned
2017-04-20 18:05 Zeljan Rikalo Fixed in Revision => 54654
2017-04-20 18:05 Zeljan Rikalo LazTarget => -
2017-04-20 18:05 Zeljan Rikalo Widgetset QT => QT, QT5
2017-04-20 18:05 Zeljan Rikalo Note Added: 0099711
2017-04-20 18:05 Zeljan Rikalo Status assigned => resolved
2017-04-20 18:05 Zeljan Rikalo Resolution open => fixed
2017-04-20 18:50 Andrey Zubarev Note Added: 0099713
2017-04-20 18:50 Andrey Zubarev Status resolved => closed