Ticket #1354: TextView.cpp.2.diff
File TextView.cpp.2.diff, 671 bytes (added by , 17 years ago) |
---|
-
TextView.cpp
1239 1239 1240 1240 BMessage *clip = clipboard->Data(); 1241 1241 if (clip != NULL) { 1242 clip->AddData("text/plain", B_MIME_TYPE, Text() + fSelStart, 1243 fSelEnd - fSelStart); 1242 if (!IsTypingHidden()) { 1243 clip->AddData("text/plain", B_MIME_TYPE, Text() + fSelStart, 1244 fSelEnd - fSelStart); 1245 } else { 1246 int32 bytes = fSelEnd - fSelStart; 1247 clip->AddData("text/plain", B_MIME_TYPE, fText->GetString(fSelStart, &bytes), 1248 fSelEnd - fSelStart); 1249 } 1244 1250 1245 1251 int32 size; 1246 1252 if (fStylable) {