bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #49471] (kawa pictures) filling a re-centered picture no


From: Sudarshan S Chawathe
Subject: [Bug-kawa] [bug #49471] (kawa pictures) filling a re-centered picture not OK?
Date: Fri, 28 Oct 2016 20:25:30 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?49471>

                 Summary: (kawa pictures) filling a re-centered picture not
OK?
                 Project: Kawa
            Submitted by: chaw
            Submitted on: Fri 28 Oct 2016 08:25:27 PM GMT
                Category: Scheme library
                Severity: 3 - Normal
              Item Group: Run-time exception
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I am unsure whether the problem here is me misinterpreting the documentation
or a real problem, but the gist of it is that I seem to be missing something
about what the re-center procedure does. (My assumption is that it returns a
picture like the other nearby procedures.)

When I try to use fill on a re-centered picture, I get an exception.  The
following is an example, (using the SVN version of Kawa from October 23rd):

#|kawa:1|# (import (kawa pictures) (kawa swing))
#|kawa:2|# (define t (polygon &P[0 0] &P[-5 -5] &P[-5 5]))
#|kawa:3|# (show-picture t)
#|kawa:4|# (show-picture (fill t))
#|kawa:5|# (show-picture (re-center 'right 'origin t))
#|kawa:6|# (show-picture (fill (re-center 'right 'origin t)))
java.lang.NullPointerException
        at gnu.mapping.WrappedException.<init>(WrappedException.java:40)
        at gnu.mapping.WrongType.<init>(WrongType.java:55)
        at gnu.expr.GenericProc.applyN(GenericProc.java:122)
        at gnu.mapping.ProcedureN.apply1(ProcedureN.java:31)
        at atInteractiveLevel-6.run(stdin:6)
        at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:293)
        at gnu.expr.ModuleExp.evalModule(ModuleExp.java:212)
        at kawa.Shell.run(Shell.java:283)
        at kawa.Shell.run(Shell.java:196)
        at kawa.Shell.run(Shell.java:183)
        at kawa.repl.processArgs(repl.java:705)
        at kawa.repl.main(repl.java:811)
#|kawa:7|# (show-picture (re-center 'right 'origin (fill t)))
#|kawa:8|# (exit)
address@hidden:~$ kawa --version
Kawa 2.1.9 (revision 8992M)
Copyright (C) 2016 Per Bothner
address@hidden:~$ 




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49471>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]