]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/preamble.cpp
Fix layout bug. Pasting text into a cell tried to set Standard layout, because
[lyx.git] / src / tex2lyx / preamble.cpp
index 6f71f7f93983623731308a4899ae2e3a0e4dd76c..4a8968c2e0107b784778b756c234f13b8d545a6e 100644 (file)
@@ -746,7 +746,7 @@ void parse_preamble(Parser & p, ostream & os,
                        for (; *margin; ++margin) {
                                k += 1;
                                // search for the "=" in e.g. "lmargin=2cm" to get the value
-                               for(int i = 0; i < opts.size(); i++) {
+                               for(size_t i = 0; i != opts.size(); i++) {
                                        if (opts.at(i).find(*margin) != string::npos) {
                                                string::size_type pos = opts.at(i).find("=");
                                                string value = opts.at(i).substr(pos + 1);