mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug 4232: Crash on bad counter name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20679 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e4558862ba
commit
9b223c494e
@ -1658,7 +1658,9 @@ docstring Paragraph::expandLabel(LayoutPtr const & layout,
|
|||||||
size_t const j = fmt.find('@', i + 1);
|
size_t const j = fmt.find('@', i + 1);
|
||||||
if (j != docstring::npos) {
|
if (j != docstring::npos) {
|
||||||
docstring parent(fmt, i + 1, j - i - 1);
|
docstring parent(fmt, i + 1, j - i - 1);
|
||||||
docstring label = expandLabel(tclass[parent], bparams,
|
docstring label = from_ascii("XXXX");
|
||||||
|
if (tclass.hasLayout(parent))
|
||||||
|
docstring label = expandLabel(tclass[parent], bparams,
|
||||||
process_appendix);
|
process_appendix);
|
||||||
fmt = docstring(fmt, 0, i) + label
|
fmt = docstring(fmt, 0, i) + label
|
||||||
+ docstring(fmt, j + 1, docstring::npos);
|
+ docstring(fmt, j + 1, docstring::npos);
|
||||||
|
Loading…
Reference in New Issue
Block a user