[mcclim-devel] Re: DREI: delete-elements* isn't defined

Evgeny M. Zubok evgeny.zubok at tochka.ru
Fri Feb 1 16:01:53 UTC 2008


Troels Henriksen <athas at sigkill.dk> writes:

Troels, I have another bug in DREI. When I try to type any letter in
text field (for example, in calculator example) then I get error in
function stroke-drawing-fn:

+: NIL is not a number
   [Condition of type SIMPLE-TYPE-ERROR]

I looked up at the locals and saw that argument 'stroke' of this
function has following value

"#S(DREI::DISPLAYED-STROKE :START-OFFSET 0 :END-OFFSET 1 
                           :DRAWING-OPTIONS #S(DREI:DRAWING-OPTIONS 
                           :FACE #S(DREI:FACE :INK #1=#.CLIM:+FOREGROUND-INK+ 
                           :STYLE NIL) 
                           :FUNCTION #<COMPILED-FUNCTION #:|102 108
                           (DEFCONSTANT
                           +DEFAULT-STROKE-DRAWER-DISPATCHER+ #'(LAMBDA
                           # #) ...)-5-1|>) 
                           :DIRTY T :MODIFIED NIL 
                           :DIMENSIONS #S(DREI::DIMENSIONS :X1 54 :Y1
                           19.0d0 :X2 63 :Y2 33.0d0 :CENTER 11) 
                           :WIDTHS #(NIL 9) :PARTS ((0 1)))"


I think that this error raise in (draw-text* stream object (+ cursor-x
width) when 'width' is nil (:WIDTHS #(NIL 9) in arguments). I don't know
internals of Drei at all so I can't give you more details.




More information about the mcclim-devel mailing list