mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
5647dabc2a
commit
31c5cdf88c
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user