fix off by one on paragraph->layout

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8271 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-12-20 00:24:31 +00:00
parent 5647dabc2a
commit 31c5cdf88c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-12-19 Alfredo Braunstein <abraunst@lyx.org>
* text2.C (setParagraph): fix off-by-one crash
2003-12-18 Martin Vermeer <martin.vermeer@hut.fi>
* output_docbook.C: header stuff for AGU

View File

@ -596,7 +596,7 @@ void LyXText::setParagraph(Spacing const & spacing, LyXAlignment align,
ParagraphList::reverse_iterator pit(getPar(selEnd().par()));
ParagraphList::reverse_iterator beg(getPar(selStart().par()));
for (++beg; pit != beg; ++pit) {
for (--pit; pit != beg; ++pit) {
ParagraphParameters & params = pit->params();
params.spacing(spacing);