[Lazarus] CHM help package

Werner Pamler werner.pamler at freenet.de
Tue Dec 12 14:32:28 CET 2017


Am 12.12.2017 um 11:01 schrieb Sergey Bodrov via Lazarus:
> BTW,  in ipcss.inc TCSSProps.ReadCommands() lack of Args.Count 
> checking for 'border-width', 'border-color' 
> and 'border-style' cause Args[0] out-of-range errors.
> Instead of tons checks for Args.Count, I propose single local 
> function, that returns string from Args by index, or empty string if 
> there is no such index.

Really? It looks fine for me. I even removed some more checks for 
Args.Count > 0 when accessing Args[0] - this code is never reached 
because it happens inside an Args loop which is never entered if 
Args.Count = 0. What did you do to see that there is a problem?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171212/3e2810f9/attachment.html>


More information about the Lazarus mailing list