X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.cpp;h=7197b91cf26951477c8515f69915c3bc686dc0d5;hb=196d9caeb0b9f74d02750f774de1ca63a483803f;hp=97d497209e9d8839db17bc5e08dd5a4336975a22;hpb=11c47ddfcfa8c83fd24b1e7e47279db32f1be9cd;p=lyx.git diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 97d497209e..7197b91cf2 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -14,12 +14,12 @@ #include +#include "Cursor.h" + #include "Buffer.h" #include "BufferView.h" #include "CoordCache.h" -#include "Cursor.h" #include "CutAndPaste.h" -#include "DispatchResult.h" #include "FuncCode.h" #include "FuncRequest.h" #include "Language.h" @@ -27,7 +27,6 @@ #include "LyXAction.h" #include "LyXRC.h" #include "Paragraph.h" -#include "ParIterator.h" #include "Row.h" #include "texstream.h" #include "Text.h" @@ -36,12 +35,10 @@ #include "support/debug.h" #include "support/docstream.h" -#include "support/ExceptionMessage.h" #include "support/gettext.h" #include "support/lassert.h" #include "insets/InsetTabular.h" -#include "insets/InsetText.h" #include "mathed/InsetMath.h" #include "mathed/InsetMathBrace.h" @@ -1435,10 +1432,7 @@ bool Cursor::atFirstOrLastRow(bool up) /////////////////////////////////////////////////////////////////// #include "mathed/InsetMathChar.h" -#include "mathed/InsetMathGrid.h" -#include "mathed/InsetMathScript.h" #include "mathed/InsetMathUnknown.h" -#include "mathed/MathFactory.h" #include "mathed/MathStream.h" #include "mathed/MathSupport.h" @@ -1839,13 +1833,13 @@ bool Cursor::inMacroMode() const InsetMathUnknown * Cursor::activeMacro() { - return inMacroMode() ? prevAtom().nucleus()->asUnknownInset() : 0; + return inMacroMode() ? prevAtom().nucleus()->asUnknownInset() : nullptr; } InsetMathUnknown const * Cursor::activeMacro() const { - return inMacroMode() ? prevAtom().nucleus()->asUnknownInset() : 0; + return inMacroMode() ? prevAtom().nucleus()->asUnknownInset() : nullptr; } @@ -2474,12 +2468,6 @@ void Cursor::checkBufferStructure() // In case the master has no gui associated with it, // the TocItem is not updated (part of bug 5699). buffer()->tocBackend().updateItem(*this); - - // If the last tracked change of the paragraph has just been - // deleted, then we need to recompute the buffer flag - // tracked_changes_present_. - if (inTexted() && paragraph().isChangeUpdateRequired()) - disp_.forceChangesUpdate(); }