bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #33285] IllegalArgumentException after deleting to the b


From: Shad Gregory
Subject: [Bug-kawa] [bug #33285] IllegalArgumentException after deleting to the beginning of the buffer
Date: Wed, 11 May 2011 03:40:25 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

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

                 Summary: IllegalArgumentException after deleting to the
beginning of the buffer
                 Project: Kawa
            Submitted by: shadgregory
            Submitted on: Wed 11 May 2011 03:40:24 AM GMT
                Category: JEmacs
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

1) type a character
2) backspace over the character (or Ctrl_A and Crtl-D)
3) try to type a new character
4) you will receive an error:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
offsetLimit must be after current position
        at 
java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:355)
        at 
java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:440)
        at javax.swing.text.TextLayoutStrategy.sync(TextLayoutStrategy.java:315)
        at
javax.swing.text.TextLayoutStrategy.insertUpdate(TextLayoutStrategy.java:69)
        at javax.swing.text.FlowView.insertUpdate(FlowView.java:256)
        at javax.swing.text.View.forwardUpdateToView(View.java:1203)
        at javax.swing.text.View.forwardUpdate(View.java:1178)
        at javax.swing.text.BoxView.forwardUpdate(BoxView.java:240)
        at javax.swing.text.View.insertUpdate(View.java:702)
        at
javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1607)
        at
javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1866)
        at
javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:202)
        at
javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:751)
        at 
javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:710)
        at gnu.jemacs.swing.SwingBuffer.insert(SwingBuffer.java:216)

I have attached a patch that corrects this problem, though I am certain that
this is not the correct solution.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 11 May 2011 03:40:24 AM GMT  Name: jemacs.diff  Size: 453B   By:
shadgregory

<http://savannah.gnu.org/bugs/download.php?file_id=23384>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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