]> git.lyx.org Git - features.git/commitdiff
Fix for a problem reported by some users, where cut & paste of math
authorJosé Matox <jamatos@lyx.org>
Thu, 17 May 2007 21:47:32 +0000 (21:47 +0000)
committerJosé Matox <jamatos@lyx.org>
Thu, 17 May 2007 21:47:32 +0000 (21:47 +0000)
insets in RTL paragraphs is garbled because of parentheses being reversed.

See threads http://permalink.gmane.org/gmane.editors.lyx.devel/83938 and
http://thread.gmane.org/gmane.editors.lyx.devel/83345/focus=83637 for
details.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18388 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index e870583d4e3bab9322015e3f365bbcb3019eafa9..0634bbafe54ace43be22866138a9ac591d133175 100644 (file)
@@ -2394,7 +2394,7 @@ docstring const Paragraph::asString(Buffer const & buffer,
                os << params().labelString() << ' ';
 
        for (pos_type i = beg; i < end; ++i) {
-               value_type const c = getUChar(buffer.params(), i);
+               value_type const c = getChar(i);
                if (isPrintable(c))
                        os.put(c);
                else if (c == META_INSET)