mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
Fix bug #6581: Empty base of a script inset should not be shown as an empty brace inset on screen
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@33772 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
36435d25d7
commit
ab08ae33ca
@ -934,6 +934,14 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
||||
// in an unreliable way. See this thread
|
||||
// http://www.mail-archive.com/lyx-devel%40lists.lyx.org/msg104917.html
|
||||
// for more details.
|
||||
// However, we remove empty braces because they look
|
||||
// ugly on screen and we are sure that they were added
|
||||
// by the write() method (and will be re-added on save).
|
||||
if (p->nuc().size() == 1 &&
|
||||
p->nuc().back()->asBraceInset() &&
|
||||
p->nuc().back()->asBraceInset()->cell(0).empty())
|
||||
p->nuc().erase(0);
|
||||
|
||||
parse(p->cell(p->idxOfScript(up)), FLAG_ITEM, mode);
|
||||
if (limits) {
|
||||
p->limits(limits);
|
||||
|
@ -56,6 +56,9 @@ What's new
|
||||
- <Enter> in empty enumerations and other environments decreases depth if
|
||||
possible and otherwise resets the layout to standard.
|
||||
|
||||
- Don't show the empty base of a script inset as an empty brace inset
|
||||
on screen (bug 6581).
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user