]> git.lyx.org Git - lyx.git/blobdiff - src/support/lstrings.cpp
Cmake build: Omit also hidden header files from globbing
[lyx.git] / src / support / lstrings.cpp
index cec1812897c5f729f0b524ed3b8ef6798c3145db..ea1ba59984a62ba7e92910d94530a930e3baf0ef 100644 (file)
@@ -1458,7 +1458,7 @@ docstring bformat(docstring const & fmt, char const * arg1, docstring arg2)
        LATTEST(contains(fmt, from_ascii("%1$s")));
        LATTEST(contains(fmt, from_ascii("%2$s")));
        docstring str = subst(fmt, from_ascii("%1$s"), from_ascii(arg1));
-       str = subst(fmt, from_ascii("%2$s"), arg2);
+       str = subst(str, from_ascii("%2$s"), arg2);
        return subst(str, from_ascii("%%"), from_ascii("%"));
 }
 
@@ -1502,23 +1502,5 @@ docstring bformat(docstring const & fmt,
        return subst(str, from_ascii("%%"), from_ascii("%"));
 }
 
-
-docstring directedString(docstring const & s, bool const rtl)
-{
-       /* In LyX, the character direction is forced by the language.
-        * Therefore, we have to signal that fact to Qt.
-        * Source: http://www.iamcal.com/understanding-bidirectional-text/
-        */
-       // Left-to-right override: forces to draw text left-to-right
-       char_type const LRO = 0x202D;
-       // Right-to-left override: forces to draw text right-to-left
-       char_type const RLO = 0x202E;
-       // Pop directional formatting: return to previous state
-       char_type const PDF = 0x202C;
-       return (rtl ? RLO : LRO) + s + PDF;
-}
-
-
-
 } // namespace support
 } // namespace lyx