From 5f1d31bf16aae6421fcd2e484ef35837d6aa392b Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 25 Apr 2011 01:46:37 +0000 Subject: [PATCH] Just whitespace and a comment. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38485 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CoordCache.cpp | 2 +- src/TextMetrics.cpp | 1 + src/insets/InsetTabular.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CoordCache.cpp b/src/CoordCache.cpp index d1d41e3968..4c9e880092 100644 --- a/src/CoordCache.cpp +++ b/src/CoordCache.cpp @@ -37,7 +37,7 @@ void lyxbreaker(void const * data, const char * hint, int size) { LYXERR0("break on pointer: " << data << " hint: " << hint << " size: " << size); - LASSERT(false, return); + LASSERT(false, return); } diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 085040990d..778da312a7 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -401,6 +401,7 @@ bool TextMetrics::redoParagraph(pit_type const pit) InsetList::const_iterator ii = par.insetList().begin(); InsetList::const_iterator iend = par.insetList().end(); for (; ii != iend; ++ii) { + // FIXME Doesn't this HAVE to be non-empty? // position already initialized? if (!parPos.empty()) { parPos.pos() = ii->pos; diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 5eb59e54d2..a899706f38 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -522,7 +522,7 @@ InsetTableCell splitCell(InsetTableCell & head, docstring const align_d, bool & DocIterator dit = doc_iterator_begin(&head.buffer(), &head); for (; dit; dit.forwardChar()) - if (dit.inTexted() && dit.depth()==1 + if (dit.inTexted() && dit.depth() == 1 && dit.paragraph().find(align_d, false, false, dit.pos())) break; -- 2.39.5