From: Bo Peng Date: Wed, 16 May 2007 20:57:03 +0000 (+0000) Subject: InsetListings: fix bug 3627 X-Git-Tag: 1.6.10~9733 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=aa9f87addb03ca5b0e46ec863c3e2178b49bcaee;p=lyx.git InsetListings: fix bug 3627 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18374 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/QListings.cpp b/src/frontends/qt4/QListings.cpp index f2a3386bbd..72948500a7 100644 --- a/src/frontends/qt4/QListings.cpp +++ b/src/frontends/qt4/QListings.cpp @@ -292,14 +292,14 @@ void QListings::update_contents() *it = ""; } } + } else if (prefixIs(*it, "floatplacement=")) { + dialog_->floatCB->setChecked(true); + dialog_->placementLE->setText(toqstr(it->substr(15))); + *it = ""; } else if (prefixIs(*it, "float")) { + dialog_->floatCB->setChecked(true); if (prefixIs(*it, "float=")) dialog_->placementLE->setText(toqstr(it->substr(6))); - else - dialog_->floatCB->setChecked(true); - *it = ""; - } else if (prefixIs(*it, "floatplacement=")) { - dialog_->placementLE->setText(toqstr(it->substr(15))); *it = ""; } else if (prefixIs(*it, "numbers=")) { dialog_->numberSideCO->setCurrentIndex(