]> git.lyx.org Git - lyx.git/blobdiff - src/support/LSubstring.C
more changes read the ChangeLog
[lyx.git] / src / support / LSubstring.C
index 1369434ab5784225b66b44928442dd99abbade3f..3b9d1c379255f1d41056bc0c2d19f76b67a2991e 100644 (file)
@@ -4,7 +4,7 @@
  *           LyX, The Document Processor
  *      
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 The LyX Team.
+ *           Copyright 1995-2000 The LyX Team.
  *
  * ====================================================== */
 
 #include <config.h>
 #endif
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
+
 #include "LSubstring.h"
 
 
@@ -59,7 +63,7 @@ LSubstring & LSubstring::operator=(string const & s)
 
 LSubstring & LSubstring::operator=(LSubstring const & s)
 {
-       ps->replace(pos, n, string(s, 0, string::npos));
+       ps->replace(pos, n, s);
        return *this;
 }