compilation error with D2009 (WPRTEPaint, {$IFDEF WPX})

  • Hi,

    I get a compilation error in unit WPRTEPaint, function TWPRTFEnginePaint.InputString.

    at :

    {$IFDEF WPX}
    <HERE :> if WPAppServerMode then for l := 0 to aCursor.active_paragraph.LineCount - 1 do
    if aCursor.active_paragraph.CharItem[
    aCursor.active_paragraph.Lines[l].CharStart] = #10 then
    _NeedFullReformat := TRUE;
    {$ENDIF}

    Delphi says : 'Identifier l not declared'

    WPTools 6 Premium with D2009.

    I did'n't do anything special during the installation...
    (except activating WPSPELL and WPPREMIUM in WPINC.INC).

    Thanks,
    Attila