merge two if's that tested the same condition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9127 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2004-10-25 11:20:02 +00:00
parent e442f7ec3e
commit f6a49ae0f7
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2004-10-25 José Matos <jamatos@lyx.org>
* output_docbook.C (makeCommand): merge two if's that tested the same condition.
2004-10-25 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* sgml.C (escapeString): fix warning in a better way

View File

@ -234,11 +234,8 @@ ParagraphList::const_iterator makeCommand(Buffer const & buf,
string id = par->getDocbookId();
id = id.empty()? "" : " id = \"" + id + "\"";
if (bstyle->latexparam().find('#') != string::npos) {
counters.step(bstyle->counter);
}
if (!bstyle->latexparam().empty()) {
counters.step(bstyle->counter);
id = bstyle->latexparam();
if (id.find('#') != string::npos) {
string el = expandLabel(buf.params().getLyXTextClass(),