Skip to content

Commit 23acfc3

Browse files
committed
Implement a bugfix in writeParameterIndexes() as suggested. https://tracker.physiomeproject.org/show_bug.cgi?id=3855
1 parent 2eda66c commit 23acfc3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

core/src/fieldml_write.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -581,10 +581,13 @@ static void writeParameterIndexes( xmlTextWriterPtr writer, FmlSessionHandle han
581581
xmlTextWriterStartElement( writer, INDEX_EVALUATOR_TAG );
582582
xmlTextWriterWriteAttribute( writer, EVALUATOR_ATTRIB, (const xmlChar*)Fieldml_GetObjectName( handle, index ) );
583583

584-
FmlObjectHandle order = Fieldml_GetParameterIndexOrder( handle, object, i );
585-
if( order != FML_INVALID_HANDLE )
584+
if( !isSparse )
586585
{
587-
xmlTextWriterWriteAttribute( writer, ORDER_ATTRIB, (const xmlChar*)Fieldml_GetObjectName( handle, order ) );
586+
FmlObjectHandle order = Fieldml_GetParameterIndexOrder( handle, object, i );
587+
if( order != FML_INVALID_HANDLE )
588+
{
589+
xmlTextWriterWriteAttribute( writer, ORDER_ATTRIB, (const xmlChar*)Fieldml_GetObjectName( handle, order ) );
590+
}
588591
}
589592

590593
xmlTextWriterEndElement( writer );

0 commit comments

Comments
 (0)