crash reported by Rod

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5672 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-20 09:07:17 +00:00
parent 1880175fea
commit 14e9274b62
3 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2002-11-20 John Levon <levon@movementarian.org>
* QDocument.C:
* QDocumentDialog.C: fix my sillies
2002-11-20 John Levon <levon@movementarian.org>
* QLPainter.C: use realColor not color for the font

View File

@ -85,10 +85,10 @@ void QDocument::build_dialog()
dialog_->langModule->quoteStyleCO->insertItem(_("»text«"));
// packages
char const * items[] = {"default","auto","latin1","latin2",
"latin3","latin4","latin5","latin9",
"koi8-r","koi8-u","cp866","cp1251",
"iso88595","pt154",0};
char const * items[] = {"default", "auto", "latin1", "latin2",
"latin3", "latin4", "latin5", "latin9",
"koi8-r", "koi8-u", "cp866", "cp1251",
"iso88595", "pt154", 0};
dialog_->packagesModule->encodingCO->insertStrList(items);
dialog_->packagesModule->lspacingCO->insertItem(
@ -109,7 +109,7 @@ void QDocument::build_dialog()
char const * sizes[] = {
_("Default") , _("Custom") , _("US letter") , _("US legal")
, _("US executive") , _("A3") , _("A4") , _("A5")
, _("B3") , _("B4") , _("B5") };
, _("B3") , _("B4") , _("B5"), 0 };
dialog_->paperModule->papersizeCO->insertStrList(sizes);
// layout

View File

@ -348,11 +348,11 @@ void QDocumentDialog::enableSkip(bool skip)
void QDocumentDialog::setMargins(int papersize)
{
const char * a4only[] = {
char const * a4only[] = {
_("Small Margins"), _("Very small Margins"),
_("Very wide Margins ") };
const char * normal[] = {
_("Default"), _("Custom") };
_("Very wide Margins "), 0 };
char const * normal[] = {
_("Default"), _("Custom"), 0 };
int olditem = marginsModule->marginCO->currentItem();
marginsModule->marginCO->clear();