]> git.lyx.org Git - features.git/commitdiff
Fix bug 4147.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 1 Nov 2007 16:59:40 +0000 (16:59 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 1 Nov 2007 16:59:40 +0000 (16:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21344 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp
src/insets/InsetTabular.h

index 25e6a0f8ed4061713deb810167a9957d1bdf6a2c..6eb171d4b62cfd25bdede2f5db4c0d37a2753c6a 100644 (file)
@@ -2730,7 +2730,7 @@ void Tabular::plaintextPrintCell(Buffer const & buf, odocstream & os,
 
 void Tabular::plaintext(Buffer const & buf, odocstream & os,
                           OutputParams const & runparams, int const depth,
-                          bool onlydata, unsigned char delim) const
+                          bool onlydata, char_type delim) const
 {
        // first calculate the width of the single columns
        vector<unsigned int> clen(columnCount());
@@ -2774,7 +2774,9 @@ void Tabular::plaintext(Buffer const & buf, odocstream & os,
                        if (isPartOfMultiColumn(i, j))
                                continue;
                        if (onlydata && j > 0)
-                               os << delim;
+                               // we don't use operator<< for single UCS4 character.
+                               // see explanation in docstream.h
+                               os.put(delim);
                        plaintextPrintCell(buf, os, runparams,
                                           cell, i, j, clen, onlydata);
                        ++cell;
index 6fba87fd3a622d4ff7ff3c596375f1a7761eef23..3020aede59dd53e2d0621a41a8055faede47e7d6 100644 (file)
@@ -359,7 +359,7 @@ public:
        ///
        void plaintext(Buffer const &, odocstream &,
                       OutputParams const & runparams, int const depth,
-                      bool onlydata, unsigned char delim) const;
+                      bool onlydata, char_type delim) const;
        ///
        bool isMultiColumn(idx_type cell) const;
        ///