]> git.lyx.org Git - lyx.git/commitdiff
Please Andre
authorPavel Sanda <sanda@lyx.org>
Tue, 4 Aug 2009 09:26:46 +0000 (09:26 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 4 Aug 2009 09:26:46 +0000 (09:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30856 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index 6a0c16a1887e6e8be9b4a9fecb40e26e4d959748..6b0f27543a5c14b4447530c7c5028accc71cf9bc 100644 (file)
@@ -2552,9 +2552,9 @@ docstring Paragraph::asString(pos_type beg, pos_type end, int options) const
        for (pos_type i = beg; i < end; ++i) {
                char_type const c = d->text_[i];
                if (isPrintable(c) || c == '\t'
-                   || (c == '\n' && options & AS_STR_NEWLINES))
+                   || (c == '\n' && (options & AS_STR_NEWLINES)))
                        os.put(c);
-               else if (c == META_INSET && options & AS_STR_INSETS) {
+               else if (c == META_INSET && (options & AS_STR_INSETS)) {
                        getInset(i)->tocString(os);
                        if (getInset(i)->asInsetMath())
                                os << " ";
@@ -2577,9 +2577,9 @@ docstring Paragraph::stringify(pos_type beg, pos_type end, int options, OutputPa
        for (pos_type i = beg; i < end; ++i) {
                char_type const c = d->text_[i];
                if (isPrintable(c) || c == '\t'
-                   || (c == '\n' && options & AS_STR_NEWLINES))
+                   || (c == '\n' && (options & AS_STR_NEWLINES)))
                        os.put(c);
-               else if (c == META_INSET && options & AS_STR_INSETS) {
+               else if (c == META_INSET && (options & AS_STR_INSETS)) {
                        getInset(i)->plaintext(os, runparams);
                }
        }