mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 07:49:39 +02:00
gtk: don't raise an exception if we are creating DC and can't get drawable (fixes issue #14035)
git-svn-id: trunk@20869 -
This commit is contained in:
parent
6eb542a6f7
commit
a4a1469e9d
@ -277,7 +277,9 @@ begin
|
||||
//force creation
|
||||
gtk_widget_realize(ClientWidget);
|
||||
AWindow := GetControlWindow(ClientWidget);
|
||||
if AWindow = nil then RaiseUnableToRealize;
|
||||
// Don't raise an exception. Not all operations needs drawable. For example font metrics:
|
||||
// http://bugs.freepascal.org/view.php?id=14035
|
||||
//if AWindow = nil then RaiseUnableToRealize;
|
||||
end;
|
||||
end
|
||||
else begin
|
||||
|
Loading…
Reference in New Issue
Block a user