Fix bug 3057.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16532 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2007-01-05 14:36:50 +00:00
parent 4cbb5e701b
commit 0b9dad040c
3 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-01-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* QCitationDialog.C: Disallow pressing the add button in the citation
dialog when no citations are available, preventing a crash (bug 3057).
2006-12-09 Enrico Forestieri <forenr@tlc.unipr.it>
* qfont_loader.[Ch] (width): rename WidthCache as MetricsCache.

View File

@ -71,6 +71,7 @@ void QCitationDialog::setButtons()
int const sel_nr = selectedLB->currentItem();
int const avail_nr = add_->availableLB->currentItem();
addPB->setEnabled(add_->availableLB->count() != 0);
add_->addPB->setEnabled(avail_nr >= 0);
deletePB->setEnabled(sel_nr >= 0);
upPB->setEnabled(sel_nr > 0);

View File

@ -113,6 +113,9 @@ What's new
- Fix an undo crash crash with nested font changes in math (bug 3019).
- Disallow pressing the add button in the citation dialog when no citations
are available, preventing a crash (bug 3057).
- Fix deletion of empty paragraph in various situations: paragraphs
with different layouts, layouts with KeepEmpty property, ERT insets,
tabular cells (bugs 2587 and 2882).