[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-cvs
Subject:    [ jEdit-CVS ] jEdit/org/gjt/sp/jedit/textarea JEditTextArea.java,1.358,1.359
From:       Alan Ezust <ezust () users ! sourceforge ! net>
Date:       2005-09-30 16:55:17
Message-ID: E1ELOAN-0007lp-5p () mail ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/jedit/jEdit/org/gjt/sp/jedit/textarea
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6326/gjt/sp/jedit/textarea

Modified Files:
	JEditTextArea.java 
Log Message:
Fixed a scrolling bug - where you ended up going to line -1
which caused a NullPointerException.



Index: JEditTextArea.java
===================================================================
RCS file: /cvsroot/jedit/jEdit/org/gjt/sp/jedit/textarea/JEditTextArea.java,v
retrieving revision 1.358
retrieving revision 1.359
diff -u -d -r1.358 -r1.359
--- JEditTextArea.java	8 Aug 2005 16:37:32 -0000	1.358
+++ JEditTextArea.java	30 Sep 2005 16:55:15 -0000	1.359
@@ -764,6 +764,11 @@
 				+ ",firstPhysicalLine=" + getFirstPhysicalLine()
 				+ ",lastPhysicalLine=" + getLastPhysicalLine());
 		}
+		if (screenLine < 0) 
+		{
+			point = new Point(0,0);
+			screenLine = 0;
+		}
 
 		point.x += extraEndVirt;
 



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
jEdit-CVS mailing list
jEdit-CVS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic