diff src/org/tn5250j/framework/tn5250/Screen5250.java @ 424:09c1d3aae3f0

updateDirty before testChanged, try to eliminate sending duplicate screenChanged to the monitor
author Carl Byington <carl@five-ten-sg.com>
date Fri, 31 Oct 2014 12:40:09 -0700
parents 76efe8fa29b9
children b284b8f9e535
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java	Fri Oct 31 08:58:00 2014 -0700
+++ b/src/org/tn5250j/framework/tn5250/Screen5250.java	Fri Oct 31 12:40:09 2014 -0700
@@ -3450,7 +3450,7 @@
     private void xx_flush() {
         if (xx_length > 0) {
             char[] p = new char[xx_length];
-            System.arraycopy(xx_pending, 0, p, xx_length);
+            System.arraycopy(xx_pending, 0, p, 0, xx_length);
             Log.i(TAG, String.format("row %d col %d %s", getRow(xx_position), getCol(xx_position), new String(p)));
         }
         xx_length = 0;