Update of /cvsroot/mahogany/M/src/classes
In directory usw-pr-cvs1:/tmp/cvs-serv6438/src/classes

Modified Files:
        MessageView.cpp 
Log Message:
no real changes

Index: MessageView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MessageView.cpp,v
retrieving revision 1.83
retrieving revision 1.84
diff -b -u -2 -r1.83 -r1.84
--- MessageView.cpp     16 Apr 2002 19:32:15 -0000      1.83
+++ MessageView.cpp     25 Apr 2002 18:27:18 -0000      1.84
@@ -1294,5 +1294,5 @@
          before = strutil_findurl(textPart, url);
       }
-      else
+      else // no URL highlighting
       {
          before = textPart;
@@ -1324,4 +1324,6 @@
          // allows us to avoid copying potentially huge strings below but to
          // just insert '\0' as needed
+
+         // lineCur is the start of the current line, lineNext of the next one
          char *lineCur = (char *)before.c_str();
          char *lineNext = strchr(lineCur, '\n');
@@ -1409,12 +1411,12 @@
             //else: same level as the previous line, just continue
 
-            if (*lineNext) 
-            {
-               lineNext = strchr(lineNext + 1, '\n');
-            }
-            else
+            if ( !*lineNext ) 
             {
-               lineNext = 0;
+               // nothing left
+               break;
             }
+
+            // FIXME: why +1 (bug?)?
+            lineNext = strchr(lineNext + 1, '\n');
          }
 
@@ -1437,5 +1439,5 @@
       }
    }
-   while ( !strutil_isempty(textPart) );
+   while ( !textPart.empty() );
 }
 


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to