mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-23 23:25:02 +00:00
Merge "Fix call to isCurly of null"
This commit is contained in:
commit
06f3b1d5a3
|
@ -256,7 +256,7 @@ class TexArray extends TexNode {
|
||||||
$state["styleargs"] = $styleArguments;
|
$state["styleargs"] = $styleArguments;
|
||||||
$mmlStyle = new MMLmstyle( "", $styleArguments );
|
$mmlStyle = new MMLmstyle( "", $styleArguments );
|
||||||
$fullRenderedArray .= $mmlStyle->getStart();
|
$fullRenderedArray .= $mmlStyle->getStart();
|
||||||
if ( $next->isCurly() ) {
|
if ( $next instanceof TexNode && $next->isCurly() ) {
|
||||||
// Wrap with style-tags when the next element is a Curly which determines start and end tag.
|
// Wrap with style-tags when the next element is a Curly which determines start and end tag.
|
||||||
$fullRenderedArray .= $this->createMMLwithContext( $currentColor, $next, $state, $arguments );
|
$fullRenderedArray .= $this->createMMLwithContext( $currentColor, $next, $state, $arguments );
|
||||||
$fullRenderedArray .= $mmlStyle->getEnd();
|
$fullRenderedArray .= $mmlStyle->getEnd();
|
||||||
|
|
Loading…
Reference in a new issue