InsetListings: fix a few checkbox logics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18310 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-05-14 14:55:26 +00:00
parent fcc2297ba7
commit 6e81ea9be8

View File

@ -337,13 +337,13 @@ void QListings::update_contents()
*it = "";
}
} else if (prefixIs(*it, "breaklines=")) {
dialog_->breaklinesCB->setChecked(prefixIs(*it, "true"));
dialog_->breaklinesCB->setChecked(contains(*it, "true"));
*it = "";
} else if (prefixIs(*it, "showspaces=")) {
dialog_->spaceCB->setChecked(prefixIs(*it, "true"));
dialog_->spaceCB->setChecked(contains(*it, "true"));
*it = "";
} else if (prefixIs(*it, "extendedchars=")) {
dialog_->extendedcharsCB->setChecked(prefixIs(*it, "true"));
dialog_->extendedcharsCB->setChecked(contains(*it, "true"));
*it = "";
} else if (prefixIs(*it, "caption=")) {
string cap = it->substr(8);