#11650: StyledEdit is broken on fresh (non-updated) images since hrev48534 ---------------------------------------+---------------------------- Reporter: vidrep | Owner: korli Type: bug | Status: assigned Priority: normal | Milestone: R1 Component: Add-Ons/Translators/RTF | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ---------------------------------------+---------------------------- Comment (by anevilyak): Possible problem found while stepping through with luroh: in http://cgit.haiku-os.org/haiku/tree/src/add- ons/translators/rtf/convert.cpp#n821 , convert_plain_text_to_rtf() unconditionally casts both its source and target BPositionIO to BFile, though e.g. in the case of BTranslationUtils::GetStyledText() (what StyledEdit uses), the output is in fact a BMallocIO. This could lead to some interesting/unpredictable issues. In any case, that convert function shouldn't be making such assumptions, and especially not without checking against dynamic_cast. -- Ticket URL: <https://dev.haiku-os.org/ticket/11650#comment:19> Haiku <https://dev.haiku-os.org> Haiku - the operating system.