Opened 18 years ago

Closed 18 years ago

#854 closed bug (fixed)

TextView chokes on "\n"

Reported by: johndrinkwater Owned by: jackburton
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version:
Keywords: Cc: diver
Blocked By: Blocking:
Platform: All

Description

A recent change to TextView has broken line endings.

How to reproduce: load AboutHaiku, looks at the credits view or load StyledEdit, enter a few lines of text, and save.

hrev18847

(Reported on behalf of Stargater)

Change History (5)

comment:1 by diver, 18 years ago

Cc: diver added

comment:2 by jackburton, 18 years ago

Owner: changed from axeld to jackburton
Status: newassigned

comment:3 by jackburton, 18 years ago

Milestone: R1

comment:4 by jackburton, 18 years ago

Found the problem: http://svn.berlios.de/viewcvs/haiku/haiku/trunk/src/kits/interface/TextView.cpp?rev=18837&r1=18836&r2=18837

unfortunately BView::DrawString() chokes on newlines, I removed the lenght parameter, but looks like I have to put it back.

in reply to:  4 comment:5 by jackburton, 18 years ago

Resolution: fixed
Status: assignedclosed

Replying to jackburton:

Fixed in hrev18874

Note: See TracTickets for help on using tickets.