Mattias Gaertner napisał(a):
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.
  

Ok, I can revert it.
But I want to:
1.  remove any write to console in release version of my program
2. When I test my Delphi application, I noticed that  function with any strings operators  work longer, even if then not reach that line (Delphi make longer "preamble" to that functions) , enough to move that code to subfunction - in FPC is the same (if somebody understand me)



Darek

PS. What with my last patch about tComboBox

Reply via email to