tn5250j/src/org/tn5250j/framework/tn5250 tnvt.java,1.16,1.17

Patrick Bielen <[email protected]> Thu, 03 Nov 2005 14:53:25 +0000
Newsgroups gmane.comp.java.tn5250j.cvs
Message-ID <[email protected]>
Update of /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/tn5250
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15054/src/org/tn5250j/framework/tn5250

Modified Files:
	tnvt.java 
Log Message:
Bug-fix : this fixes the bug for the restored screen did not put the fields in the right place

Index: tnvt.java
===================================================================
RCS file: /cvsroot/tn5250j/tn5250j/src/org/tn5250j/framework/tn5250/tnvt.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** tnvt.java	8 Jul 2005 06:16:24 -0000	1.16
--- tnvt.java	3 Nov 2005 14:53:23 -0000	1.17
***************
*** 1390,1394 ****
  		sc.write((byte) screen52.getColumns()); //    ""
  
! 		int cp = screen52.getCurrentPos(); // save off current position
  		sc.write((byte) (cp >> 8 & 0xff)); //    ""
  		sc.write((byte) (cp & 0xff)); //    ""
--- 1390,1397 ----
  		sc.write((byte) screen52.getColumns()); //    ""
  
! 		//int cp = screen52.getCurrentPos(); // save off current position
!         // fix below submitted by Mitch Blevins
!         int cp = screen52.getScreenFields().getCurrentFieldPos(); 
!         // save off current position
  		sc.write((byte) (cp >> 8 & 0xff)); //    ""
  		sc.write((byte) (cp & 0xff)); //    ""



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php