mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Amend 44816adce6
: Be careful before using buffer parameters in colAlign
The LASSERT(isBufferValid()..) leads to crash in find-adv dialog
This commit is contained in:
parent
26788fdd9f
commit
38ec7471e7
@ -1821,9 +1821,17 @@ char InsetMathGrid::colAlign(HullType type, col_type col) const
|
|||||||
case hullMultline:
|
case hullMultline:
|
||||||
return 'c';
|
return 'c';
|
||||||
case hullGather:
|
case hullGather:
|
||||||
|
#if 0
|
||||||
|
// Partly revert 44816adce63
|
||||||
|
// because the following test leads to crash
|
||||||
|
// Open a new lyx-file
|
||||||
|
// select findadv dialog
|
||||||
|
// in the search-field enter math
|
||||||
|
// use math-mutate gather ===> crash (because isValidBuffer() == false)
|
||||||
LASSERT(isBufferValid(),
|
LASSERT(isBufferValid(),
|
||||||
LYXERR0("Buffer not set correctly. Please report!");
|
LYXERR0("Buffer not set correctly. Please report!");
|
||||||
return 'c';);
|
return 'c';);
|
||||||
|
#endif
|
||||||
if (buffer().params().is_math_indent)
|
if (buffer().params().is_math_indent)
|
||||||
return 'l';
|
return 'l';
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user