]> git.lyx.org Git - lyx.git/blobdiff - src/Text.cpp
Try another way to signal a false positive to coverity
[lyx.git] / src / Text.cpp
index c1af0948a96a684776843a2857eefefee0caf554..cc404b2f1f56ac780073679b65b2b3cd407a298e 100644 (file)
@@ -1057,11 +1057,6 @@ void Text::insertChar(Cursor & cur, char_type c)
                        par.eraseChar(pos - 1, cur.buffer()->params().track_changes);
                        c = 0x2014;
                        pos--;
-               } else if (par.getChar(pos - 1) == 0x2014) {
-                       // convert "----" to "-"
-                       par.eraseChar(pos - 1, cur.buffer()->params().track_changes);
-                       c = '-';
-                       pos--;
                }
        }