]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcommand.C
pos=string::npos for regex not found, use handcoded transform in lstring.C, fix the...
[lyx.git] / src / insets / insetcommand.C
index ff206e63e54f2000a521dde72c6d92b71800f9eb..9f85c9ea5c786c8d22b49e9770021f4d2de6464b 100644 (file)
@@ -118,12 +118,12 @@ void InsetCommand::scanCommand(string const & cmd)
                        if (nestdepth == 0) {
                                state = WS;
                        } else {
-                               nestdepth--;
+                               --nestdepth;
                        }
                }
                if ((state == Option  && c == '[') ||
                    (state == Content && c == '{')) {
-                       nestdepth++;
+                       ++nestdepth;
                }
                switch (state) {
                case Command:   tcommand += c; break;