]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.cpp
Revert 23154.
[lyx.git] / src / buffer_funcs.cpp
index eb3eb52349d44c08e501b8823937805974723dcf..c07f136c0efbde341861b30ec771d56fb59ce383 100644 (file)
@@ -201,8 +201,7 @@ int countChars(DocIterator const & from, DocIterator const & to, bool with_blank
                pos_type const pos = dit.pos();
 
                if (pos != dit.lastpos() && !par.isDeleted(pos)) {
-                       if (par.isInset(pos)) {
-                               Inset const * ins = par.getInset(pos);
+                       if (Inset const * ins = par.getInset(pos)) {
                                if (ins->isLetter())
                                        ++chars;
                                else if (with_blanks && ins->isSpace())