Hi, On Sat, 2008-10-18 at 21:46 -0400, Alec Burgess wrote:
> > This is explained in the release notes for GIMP 2.6: > > http://gimp.org/release-notes/gimp-2.6.html > > Thanks ... I think :-) found the example and perused the linked PDF > (section 4.2.2. Binding constructs) with out much if any > understanding. > > I changed: > (define (save-layer orig-image layer name) > (let* ( > (image) > (buffer) > ) > > to: > (define (save-layer orig-image layer name) > (let* ( > (this-is-correct 0) > (image) > (buffer) > ) The proper fix would have been to use: (let* ( (image -1) (buffer -1) ) The point is the variables need to be initialized on definition. I have chosen to initialize them to -1 in this example as that is the value that is used for an invalid image or buffer ID in GIMP. Sven _______________________________________________ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user