mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-13 03:40:34 +00:00
Small fix to KDE FormCitation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1012 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7d131e12b3
commit
a5f9110a66
@ -1,5 +1,9 @@
|
||||
2000-09-11 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* src/frontends/kde/FormCitation.C: fix thinko
|
||||
where we didn't always display the reference text
|
||||
properly
|
||||
|
||||
* src/frontends/kde/formurldialog.C
|
||||
* src/frontends/kde/formurldialog.h
|
||||
* src/frontends/kde/FormUrl.C
|
||||
|
2
lib/configure
vendored
2
lib/configure
vendored
@ -954,7 +954,7 @@ cat >lyxrc.defaults <<EOF
|
||||
\\converter docbook dvi "$docbook_to_dvi_command" ""
|
||||
\\converter docbook html "$docbook_to_html_command" ""
|
||||
\\converter tex html "$latex_to_html_command"
|
||||
originaldir
|
||||
"originaldir,needaux"
|
||||
|
||||
\\viewer dvi "$DVI_VIEWER"
|
||||
\\viewer html "$HTML_VIEWER"
|
||||
|
@ -31,7 +31,13 @@ src/form1.C
|
||||
src/frontends/gnome/FormCitation.C
|
||||
src/frontends/gnome/FormPrint.C
|
||||
src/frontends/gnome/FormToc.C
|
||||
src/frontends/kde/FormCitation.C
|
||||
src/frontends/kde/formcitationdialog.C
|
||||
src/frontends/kde/FormCopyright.C
|
||||
src/frontends/kde/FormIndex.C
|
||||
src/frontends/kde/formindexdialog.C
|
||||
src/frontends/kde/FormToc.C
|
||||
src/frontends/kde/formtocdialog.C
|
||||
src/frontends/kde/FormUrl.C
|
||||
src/frontends/kde/formurldialog.C
|
||||
src/frontends/xforms/FormCitation.C
|
||||
|
@ -268,8 +268,9 @@ void FormCitation::up()
|
||||
// Qt will select the first one on redo, so we need this
|
||||
string tmp = selectedChosenKey;
|
||||
|
||||
for (vector< string >::iterator iter = chosenkeys.begin();
|
||||
iter != chosenkeys.end(); ++iter) {
|
||||
vector< string >::iterator iter = chosenkeys.begin();
|
||||
|
||||
for (; iter != chosenkeys.end(); ++iter) {
|
||||
if (*iter==selectedChosenKey && iter!=chosenkeys.begin()) {
|
||||
string tmp = *iter;
|
||||
chosenkeys.erase(iter);
|
||||
@ -293,8 +294,9 @@ void FormCitation::down()
|
||||
// Qt will select the first one on redo, so we need this
|
||||
string tmp = selectedChosenKey;
|
||||
|
||||
for (vector< string >::iterator iter = chosenkeys.begin();
|
||||
iter != chosenkeys.end(); ++iter) {
|
||||
vector< string >::iterator iter = chosenkeys.begin();
|
||||
|
||||
for (; iter != chosenkeys.end(); ++iter) {
|
||||
if (*iter==selectedChosenKey && (iter+1)!=chosenkeys.end()) {
|
||||
string tmp = *iter;
|
||||
chosenkeys.erase(iter);
|
||||
@ -339,8 +341,10 @@ void FormCitation::highlight_chosen(const char *key)
|
||||
selectedChosenKey = key;
|
||||
|
||||
unsigned int i;
|
||||
|
||||
for (i=0; i < keys.size(); i++) {
|
||||
if (keys[i].first==key && keys[i].second.compare(dialog_->entry->text())) {
|
||||
if (keys[i].first==key) {
|
||||
if (keys[i].second.compare(dialog_->entry->text()))
|
||||
dialog_->entry->setText(keys[i].second.c_str());
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user