mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
minor fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5688 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e6c532d775
commit
077819717e
@ -1,3 +1,8 @@
|
|||||||
|
2002-11-20 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
|
* QMathDialog.C: don't pass empty commands to math
|
||||||
|
on menu tear-off
|
||||||
|
|
||||||
2002-11-20 John Levon <levon@movementarian.org>
|
2002-11-20 John Levon <levon@movementarian.org>
|
||||||
|
|
||||||
* QLPopupMenu.C: only check .disabled() on Commands
|
* QLPopupMenu.C: only check .disabled() on Commands
|
||||||
|
@ -271,6 +271,7 @@ void QMathDialog::insertSpace(int id)
|
|||||||
case 4: str = "quad"; break;
|
case 4: str = "quad"; break;
|
||||||
case 5: str = "qquad"; break;
|
case 5: str = "qquad"; break;
|
||||||
case 6: str = "!"; break;
|
case 6: str = "!"; break;
|
||||||
|
default: return;
|
||||||
}
|
}
|
||||||
form_->insert(str);
|
form_->insert(str);
|
||||||
}
|
}
|
||||||
@ -300,6 +301,7 @@ void QMathDialog::insertStyle(int id)
|
|||||||
case 2: str = "textstyle"; break;
|
case 2: str = "textstyle"; break;
|
||||||
case 3: str = "scriptstyle"; break;
|
case 3: str = "scriptstyle"; break;
|
||||||
case 4: str = "scriptscriptstyle"; break;
|
case 4: str = "scriptscriptstyle"; break;
|
||||||
|
default: return;
|
||||||
}
|
}
|
||||||
form_->insert(str);
|
form_->insert(str);
|
||||||
}
|
}
|
||||||
@ -318,6 +320,7 @@ void QMathDialog::insertFont(int id)
|
|||||||
case 7: str = "mathfrak"; break;
|
case 7: str = "mathfrak"; break;
|
||||||
case 8: str = "mathcal"; break;
|
case 8: str = "mathcal"; break;
|
||||||
case 9: str = "textrm"; break;
|
case 9: str = "textrm"; break;
|
||||||
|
default: return;
|
||||||
}
|
}
|
||||||
form_->insert(str);
|
form_->insert(str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user