honor float placement for algorithm

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@3660 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-03-04 16:18:11 +00:00
parent 4f147ebcff
commit ca51332c41
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-03-04 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* src/paragraph.C (TeXFootnote): honor float placement for
algorithms too.
2002-03-01 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* config/lyxinclude.m4 (LYX_PROG_CXX): use -dumpversion to get gcc

View File

@ -3606,7 +3606,12 @@ LyXParagraph * LyXParagraph::TeXFootnote(Buffer const * buf,
}
break;
case LyXParagraph::ALGORITHM:
os << "\\begin{algorithm}\n";
os << "\\begin{algorithm}";
if (!bparams.float_placement.empty()) {
os << '[' << bparams.float_placement << "]\n";
} else {
os << '\n';
}
break;
}
texrow.newline();