summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2003-03-26 00:47:14 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2003-03-26 00:47:14 +0000
commit52f7cb86a0aea36cac1e63f2681bed6d8c8d1a52 (patch)
tree5de3c11c82f362f248424099971a2ba46d8629ab /src/Fl_Text_Display.cxx
parent99981602d1f6fb0ee83bb61a6247c6300732e741 (diff)
fltk-config fix.
Fl_Text_Display fix (SF bug #706921) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 7c256d0b7..ffea7716f 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Text_Display.cxx,v 1.12.2.43 2003/03/17 18:31:16 easysw Exp $"
+// "$Id: Fl_Text_Display.cxx,v 1.12.2.44 2003/03/26 00:47:14 easysw Exp $"
//
// Copyright 2001-2003 by Bill Spitzak and others.
// Original code Copyright Mark Edel. Permission to distribute under
@@ -2220,6 +2220,8 @@ static int countlines( const char *string ) {
const char * c;
int lineCount = 0;
+ if (!string) return 0;
+
for ( c = string; *c != '\0'; c++ )
if ( *c == '\n' ) lineCount++;
return lineCount;
@@ -3044,5 +3046,5 @@ int Fl_Text_Display::handle(int event) {
//
-// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.43 2003/03/17 18:31:16 easysw Exp $".
+// End of "$Id: Fl_Text_Display.cxx,v 1.12.2.44 2003/03/26 00:47:14 easysw Exp $".
//