InsetListings: fix bug 3627

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18374 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-05-16 20:57:03 +00:00
parent a90f967d6f
commit aa9f87addb

View File

@ -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(