* Paragraph.cpp:

- we do not output alignment begin for the default alignment,
	  so we must not output the end tag (bug 5995)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30152 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-06-18 06:52:59 +00:00
parent 8aa09ebafe
commit b498fa1b05
2 changed files with 9 additions and 2 deletions

View File

@ -1854,7 +1854,12 @@ int Paragraph::Private::endTeXParParams(BufferParams const & bparams,
{
int column = 0;
switch (params_.align()) {
LyXAlignment const curAlign = params_.align();
if (curAlign == layout_->align)
return column;
switch (curAlign) {
case LYX_ALIGN_NONE:
case LYX_ALIGN_BLOCK:
case LYX_ALIGN_LAYOUT:
@ -1874,7 +1879,7 @@ int Paragraph::Private::endTeXParParams(BufferParams const & bparams,
InsetCode code = owner_->ownerCode();
bool const lastpar = runparams.isLastPar;
switch (params_.align()) {
switch (curAlign) {
case LYX_ALIGN_NONE:
case LYX_ALIGN_BLOCK:
case LYX_ALIGN_LAYOUT:

View File

@ -78,6 +78,8 @@ What's new
* DOCUMENT INPUT/OUTPUT
- Fix output of alignment if default aligment is not justified (bug 5995).
- Fix the on-screen representation of headings in the AMS article and
AMS book classes.