commit ce2e1554908785d7accba292985017fb961b1450
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Fri Mar 9 12:29:07 2018 +0100

    Fix copy and paste error in 6659304f7f8b
    
    (cherry picked from commit 0513622fd0ce600cbf283f6afdbde9841d46a546)
---
 src/tex2lyx/text.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp
index 2d9bf4b..c5d7ce2 100644
--- a/src/tex2lyx/text.cpp
+++ b/src/tex2lyx/text.cpp
@@ -3918,7 +3918,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, 
bool outer,
                        if (!before.empty()) {
                                before.erase(0, 1);
                                before.erase(before.length() - 1, 1);
-                               bef = convert_latexed_command_inset_arg(after);
+                               bef = convert_latexed_command_inset_arg(before);
                                literal |= !bef.first;
                                before = literal ? subst(before, "\n", " ") : 
bef.second;
                                if (literal && !after.empty())
@@ -4018,7 +4018,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, 
bool outer,
                        if (!before.empty()) {
                                before.erase(0, 1);
                                before.erase(before.length() - 1, 1);
-                               bef = convert_latexed_command_inset_arg(after);
+                               bef = convert_latexed_command_inset_arg(before);
                                literal |= !bef.first;
                                before = literal ? subst(before, "\n", " ") : 
bef.second;
                        }
@@ -4170,7 +4170,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, 
bool outer,
                        if (!before.empty()) {
                                before.erase(0, 1);
                                before.erase(before.length() - 1, 1);
-                               bef = convert_latexed_command_inset_arg(after);
+                               bef = convert_latexed_command_inset_arg(before);
                                literal |= !bef.first;
                                before = literal ? subst(before, "\n", " ") : 
bef.second;
                                if (literal && !after.empty())

Reply via email to