#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Sun, 26 May 2019 13:11:04 +0200
changeset 6582 11f3c0f16d6b
parent 6581 c5cba27e5c19
child 6583 af87db4a9809
#BUGFIX by cg class: ListView changed: #withTabs:expand: FIX: pasting wide-text
ListView.st
--- a/ListView.st	Sun May 26 03:26:47 2019 +0000
+++ b/ListView.st	Sun May 26 13:11:04 2019 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -5359,6 +5357,10 @@
 
     currentMax := line size + (nTabs * 7).
     tmpString := line species new:currentMax.
+    "/ hack/kludge: Text new will not create a wide string.
+    tmpString isText ifTrue:[
+        tmpString := tmpString asStringWithBitsPerCharacterAtLeast:tmpString string bitsPerCharacter.
+    ].    
     dstIndex := 1.
     line do:[:character |
         (character == (Character tab)) ifTrue:[
@@ -5400,7 +5402,7 @@
     ^ tmpString copyTo:dstIndex
 
     "Modified: / 23-02-1996 / 19:11:01 / cg"
-    "Modified: / 08-02-2019 / 15:25:49 / Claus Gittinger"
+    "Modified (comment): / 26-05-2019 / 13:10:21 / Claus Gittinger"
 !
 
 withTabsExpanded:line