From: Richard Heck Date: Wed, 12 Nov 2014 00:01:45 +0000 (+0000) Subject: Whitespace. X-Git-Tag: 2.2.0alpha1~1548 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=be4646c8ac2e43e41ec913395e022388a213152f;p=features.git Whitespace. --- diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index 1a4d5f7d41..f41ce36418 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -125,7 +125,7 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist, InsetText * target_inset = cur.inset().asInsetText(); if (!target_inset) { InsetTabular * it = cur.inset().asInsetTabular(); - target_inset = it? it->cell(cur.idx())->asInsetText() : 0; + target_inset = it ? it->cell(cur.idx())->asInsetText() : 0; } LASSERT(target_inset, return PasteReturnValue(pit, pos, need_update)); @@ -170,7 +170,8 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist, if (forcePlainLayout || parLayout == defaultLayout) par->setLayout(plainLayout); } - } else { // check if we need to reset from plain layout + } else { + // check if we need to reset from plain layout Layout const & defaultLayout = newDocClass->defaultLayout(); Layout const & plainLayout = newDocClass->plainLayout(); ParagraphList::iterator const end = insertion.end();