Eliminate redundancy.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33678 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-08 19:06:28 +00:00
parent 821cffab63
commit a2e06a3c15

View File

@ -673,7 +673,7 @@ void MathMacroTemplate::shiftArguments(size_t from, int by)
int MathMacroTemplate::maxArgumentInDefinition() const
{
// We don't have a buffer when pasting from the clipboard (bug 6014).
Buffer const * macro_buffer = this->isBufferLoaded() ? &buffer() : 0;
Buffer const * macro_buffer = isBufferLoaded() ? &buffer() : 0;
int maxArg = 0;
DocIterator it = doc_iterator_begin(macro_buffer, this);
it.idx() = defIdx();