From: André Pönitz Date: Tue, 11 Mar 2003 16:38:37 +0000 (+0000) Subject: whitespace to sync my tree X-Git-Tag: 1.6.10~17272 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=31e8978f2b75ba94e07d86b691bd980911447a57;p=features.git whitespace to sync my tree git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6449 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/paragraph.C b/src/paragraph.C index 7e8470af8f..866d42471f 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -726,10 +726,8 @@ void Paragraph::makeSameLayout(Paragraph const * par) int Paragraph::stripLeadingSpaces() { - if (layout()->free_spacing || - isFreeSpacing()) { + if (layout()->free_spacing || isFreeSpacing()) return 0; - } int i = 0; while (!empty() && (isNewline(0) || isLineSeparator(0))) { @@ -786,15 +784,13 @@ Paragraph::depth_type Paragraph::getDepth() const Paragraph::depth_type Paragraph::getMaxDepthAfter() const { - bool const isenv = layout()->isEnvironment(); - - if (isenv) + if (layout()->isEnvironment()) return params().depth() + 1; else return params().depth(); - } + char Paragraph::getAlign() const { return params().align(); diff --git a/src/text2.C b/src/text2.C index 8e36ef99a3..baf28126b0 100644 --- a/src/text2.C +++ b/src/text2.C @@ -515,7 +515,7 @@ void LyXText::setLayout(BufferView * bview, string const & layout) // increment depth over selection and // make a total rebreak of those paragraphs -void LyXText::incDepth(BufferView * bview) +void LyXText::incDepth(BufferView * bview) { // If there is no selection, just use the current paragraph if (!selection.set()) {