On Fri, 10 Mar 2006 17:41:31 +0100
darekM <[EMAIL PROTECTED]> wrote:

> 
> 
> Hi
>    without this patch tLabel and tSpeedButton not work proper with
> caption in UTF8 and Unicode fonts

You replaced several If..else with an assert. For example:

-      If UseFont = nil then
-        DebugLn('WARNING: [TGtkWidgetSet.TextOut] Missing Font')
-      else begin
+        assert(UseFont<>nil,'WARNING: [TGtkWidgetSet.TextOut] Missing
Font');

If UseFont is nil, then it almost always means, the calling code did
something wrong. The gtk intf should not continue, because otherwise the gtk
will give a warning, and this will be far less helpful, than the above.
It should not be replaced by an assert, because the warning should be
written even in non debugging code. It can only be replaced with an raise
exception, but that would be incomaptible to the other widgetsets.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to