]> git.lyx.org Git - lyx.git/blobdiff - src/CursorSlice.cpp
Fix #10328.
[lyx.git] / src / CursorSlice.cpp
index 573ca9d4fe71b653bd2b3e1e02401c11171891b8..62fd92f362456fbd3810670fe22e1b0b4c5f0638 100644 (file)
@@ -23,7 +23,7 @@
 #include "insets/Inset.h"
 
 #include "mathed/InsetMath.h"
-#include "mathed/MathMacro.h"
+#include "mathed/InsetMathMacro.h"
 
 #include "support/ExceptionMessage.h"
 #include "support/gettext.h"
@@ -37,7 +37,7 @@ namespace lyx {
 
 
 CursorSlice::CursorSlice()
-       : inset_(0), idx_(0), pit_(0), pos_(0)
+       : inset_(nullptr), idx_(0), pit_(0), pos_(0)
 {}
 
 
@@ -65,7 +65,7 @@ pos_type CursorSlice::lastpos() const
        LBUFERR(inset_);
        InsetMath const * math = inset_->asInsetMath();
        bool paramless_macro = math && math->asMacro() && !math->asMacro()->nargs();
-       return math ? (paramless_macro ? 0 : cell().size()) 
+       return math ? (paramless_macro ? 0 : cell().size())
                    : (text()->empty() ? 0 : paragraph().size());
 }