diff --git a/src/ChangeLog b/src/ChangeLog index ef1b893c71..32ccda9556 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-07-17 Michael Schmitt + + * text.C (readParToken): fix spelling. + 2005-07-17 Martin Vermeer * text2.C: fix counter update for DEPM problem reported by diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 87c15c0d39..5e1761bedb 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,7 @@ +2005-07-17 Jean-Marc Lasgouttes + + * QGraphics.C (update_contents): fix out of range access. + 2005-07-17 Michael Schmitt * ui/QBibtexDialogBase.ui: fix typo diff --git a/src/frontends/qt2/QGraphics.C b/src/frontends/qt2/QGraphics.C index 0efb4f76b3..4f6730c3c7 100644 --- a/src/frontends/qt2/QGraphics.C +++ b/src/frontends/qt2/QGraphics.C @@ -261,7 +261,8 @@ void QGraphics::update_contents() dialog_->widthUnit->insertItem(unit_name_gui[i], -1); if (!igp.scale.empty() - && !float_equal(convert(igp.scale), 0.0, 0.05)) { + && !float_equal(convert(igp.scale), 0.0, 0.05) + || igp.width.empty()) { dialog_->width->setText(toqstr(igp.scale)); dialog_->widthUnit->setCurrentItem(0); } else { diff --git a/src/text.C b/src/text.C index 12a1985c12..b047b618e0 100644 --- a/src/text.C +++ b/src/text.C @@ -180,7 +180,7 @@ void readParToken(Buffer const & buf, Paragraph & par, LyXLex & lex, if (!hasLayout) { buf.error(ErrorItem(_("Unknown layout"), - bformat(_("Layout '%1$s' does not exists in textclass '%2$s'\nTrying to use the default instead.\n"), + bformat(_("Layout '%1$s' does not exist in textclass '%2$s'\nTrying to use the default instead.\n"), layoutname, tclass.name()), par.id(), 0, par.size())); layoutname = tclass.defaultLayoutName(); }