mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
InsetLisings: fix extra npos comparisons intruduced by wrongful commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18283 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0bbdc3ffeb
commit
1fb2456cec
@ -289,9 +289,9 @@ void QListings::update_contents()
|
|||||||
dialog_->placementLE->setText(toqstr(it->substr(15)));
|
dialog_->placementLE->setText(toqstr(it->substr(15)));
|
||||||
*it = "";
|
*it = "";
|
||||||
} else if (prefixIs(*it, "numbers=")) {
|
} else if (prefixIs(*it, "numbers=")) {
|
||||||
if (contains(*it, "left") != string::npos)
|
if (contains(*it, "left"))
|
||||||
dialog_->numberLeftCB->setChecked(true);
|
dialog_->numberLeftCB->setChecked(true);
|
||||||
else if (contains(*it, "right") != string::npos)
|
else if (contains(*it, "right"))
|
||||||
dialog_->numberRightCB->setChecked(true);
|
dialog_->numberRightCB->setChecked(true);
|
||||||
*it = "";
|
*it = "";
|
||||||
} else if (prefixIs(*it, "stepnumber=")) {
|
} else if (prefixIs(*it, "stepnumber=")) {
|
||||||
@ -337,13 +337,13 @@ void QListings::update_contents()
|
|||||||
*it = "";
|
*it = "";
|
||||||
}
|
}
|
||||||
} else if (prefixIs(*it, "breaklines=")) {
|
} else if (prefixIs(*it, "breaklines=")) {
|
||||||
dialog_->breaklinesCB->setChecked(prefixIs(*it, "true") != string::npos);
|
dialog_->breaklinesCB->setChecked(prefixIs(*it, "true"));
|
||||||
*it = "";
|
*it = "";
|
||||||
} else if (prefixIs(*it, "showspaces=")) {
|
} else if (prefixIs(*it, "showspaces=")) {
|
||||||
dialog_->spaceCB->setChecked(prefixIs(*it, "true") != string::npos);
|
dialog_->spaceCB->setChecked(prefixIs(*it, "true"));
|
||||||
*it = "";
|
*it = "";
|
||||||
} else if (prefixIs(*it, "extendedchars=")) {
|
} else if (prefixIs(*it, "extendedchars=")) {
|
||||||
dialog_->extendedcharsCB->setChecked(prefixIs(*it, "true") != string::npos);
|
dialog_->extendedcharsCB->setChecked(prefixIs(*it, "true"));
|
||||||
*it = "";
|
*it = "";
|
||||||
} else if (prefixIs(*it, "caption=")) {
|
} else if (prefixIs(*it, "caption=")) {
|
||||||
string cap = it->substr(8);
|
string cap = it->substr(8);
|
||||||
|
Loading…
Reference in New Issue
Block a user