]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.C
mathed31.diff
[lyx.git] / src / buffer.C
index 830a48b8efd4f54a773cbdaf06b461951259c43e..cd7ff8535cd8f5e98bab0d24438768581af86c7e 100644 (file)
@@ -2546,7 +2546,7 @@ void Buffer::pop_tag(ostream & os, string const & tag,
        int j;
        
         // pop all tags till specified one
-        for (j = pos; (j >= 0) && (strcmp(stack[j], tag.c_str())); --j)
+        for (j = pos; (j >= 0) && tag != stack[j]; --j)
                 os << "</" << stack[j] << ">";
 
         // closes the tag
@@ -2561,7 +2561,7 @@ void Buffer::pop_tag(ostream & os, string const & tag,
 #else
         // pop all tags till specified one
        int j = pos;
-        for (int j = pos; (j >= 0) && (strcmp(stack[j], tag.c_str())); --j)
+        for (int j = pos; (j >= 0) && tag != stack[j]; --j)
                 os << "</" << stack[j] << ">";
 
         // closes the tag