From fae0a308022d7c70a957a9c6ecde1f85a834ad16 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 6 Feb 2008 11:26:46 +0000 Subject: [PATCH] * first check if empty, then set the pit. Otherwise we have a segfault before the assert git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22808 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TextMetrics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 5c79d2c297..3bf074a5f4 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -385,8 +385,8 @@ bool TextMetrics::redoParagraph(pit_type const pit) << " the context is better then."); updateLabels(bv_->buffer()); parPos = text_->macrocontextPosition(); - parPos.pit() = pit; BOOST_ASSERT(!parPos.empty()); + parPos.pit() = pit; } // redo insets