FPC routines somethis follow strange indentation rules (in my opinion), and it is hard to identify the blocks. The "outline" feature here helps a lot to see that an "end" is missing in the FPImage code shown in the screenshot (of course, I removed the "end" for this demo, the original code is correct): The final "end" of a procedure always must be red (in the default coloring scheme) - here it is orange, and this indicates that an "end" is missing somewhere, without having to do a test compilation.