working input with formatting

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3869 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2003-07-06 09:26:44 +00:00
parent 08db2111e1
commit 155ae4c5cb

View File

@ -106,6 +106,8 @@ StyledEditView::GetStyledText(BPositionIO * stream)
}
}
if (fEncoding != 0) {
int32 length = stream->Seek(0,SEEK_END);
text_run_array * run_array = RunArray(0,length);
CharacterSetRoster * roster = CharacterSetRoster::Roster(&result);
if (result == B_OK) {
uint32 id = roster->FindCharacterSetByFontID(fEncoding)->GetConversionID();
@ -134,6 +136,7 @@ StyledEditView::GetStyledText(BPositionIO * stream)
}
}
}
SetRunArray(0,length,run_array);
}
fSuppressChanges = false;
return result;