From 92ee23acb44168ba7d45aa5a7c8ec8142343deb4 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 14 Aug 2007 14:41:06 +0000 Subject: [PATCH] cosmetics git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19561 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 1b86dc316c..b4fef42542 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3197,7 +3197,8 @@ void InsetTabular::updateLabels(Buffer const & buf, ParIterator const & it) ParIterator it2 = it; it2.forwardPos(); - for ( ; it2.idx() <= it2.lastidx() ; it2.forwardIdx()) + size_t const end = it2.nargs(); + for ( ; it2.idx() < end; it2.forwardIdx()) lyx::updateLabels(buf, it2); //reset afterwards