[haiku-bugs] [Haiku] #8106: BTextView::CountLines() returns wrong result

  • From: "bigmike" <trac@xxxxxxxxxxxx>
  • Date: Mon, 07 Nov 2011 18:16:56 -0000

#8106: BTextView::CountLines() returns wrong result
--------------------------------+------------------------------
 Reporter:  bigmike             |        Owner:  axeld
     Type:  bug                 |       Status:  new
 Priority:  normal              |    Milestone:  R1
Component:  Kits/Interface Kit  |      Version:  R1/Development
 Keywords:                      |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+------------------------------
 Method CountLines() doesn't count the last line in a BTextView if it is
 empty and it is not the first line. I. e. if there is some text and the
 last character is a linebreak then CountLines() returns a result that is
 one too small.

 I am not entirely sure, if this is intended behavior, but I guess not.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8106>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: