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?

-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to