* 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
This commit is contained in:
Stefan Schimanski 2008-02-06 11:26:46 +00:00
parent 08d9375572
commit fae0a30802

View File

@ -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