[haiku-commits] r36157 - haiku/trunk/src/apps/mail

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 11 Apr 2010 17:08:54 +0200 (CEST)

Author: axeld
Date: 2010-04-11 17:08:54 +0200 (Sun, 11 Apr 2010)
New Revision: 36157
Changeset: http://dev.haiku-os.org/changeset/36157/haiku

Modified:
   haiku/trunk/src/apps/mail/MailWindow.cpp
Log:
* BTextView::CountLines() counts correctly in Haiku, so the BeOS work-around of
  correcting it is no longer necessary. This should fix having the last line
  not quoted in Mail when doing partial replies.


Modified: haiku/trunk/src/apps/mail/MailWindow.cpp
===================================================================
--- haiku/trunk/src/apps/mail/MailWindow.cpp    2010-04-11 15:07:06 UTC (rev 
36156)
+++ haiku/trunk/src/apps/mail/MailWindow.cpp    2010-04-11 15:08:54 UTC (rev 
36157)
@@ -2160,7 +2160,7 @@
                fContentView->fTextView->SetText(text, finish - start);
                free(text);
 
-               finish = fContentView->fTextView->CountLines() - 1;
+               finish = fContentView->fTextView->CountLines();
                for (int32 loop = 0; loop < finish; loop++) {
                        fContentView->fTextView->GoToLine(loop);
                        fContentView->fTextView->Insert((const char *)QUOTE);


Other related posts:

  • » [haiku-commits] r36157 - haiku/trunk/src/apps/mail - axeld