You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/02/27 17:48:47 UTC

cvs commit: xml-xalan/c/src/XSLT ElemValueOf.cpp

dbertoni    01/02/27 08:48:46

  Modified:    c/src/XSLT ElemValueOf.cpp
  Log:
  Moved fire of selection event into if().
  
  Revision  Changes    Path
  1.18      +5 -5      xml-xalan/c/src/XSLT/ElemValueOf.cpp
  
  Index: ElemValueOf.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/ElemValueOf.cpp,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ElemValueOf.cpp	2001/02/12 02:34:53	1.17
  +++ ElemValueOf.cpp	2001/02/27 16:48:43	1.18
  @@ -205,13 +205,13 @@
   	{
   		const XObjectPtr	value(m_selectPattern->execute(sourceNode, *this, executionContext));
   
  -		if(0 != executionContext.getTraceListeners())
  -		{
  -			fireSelectionEvent(executionContext, sourceNode, value);
  -		}
  -		
   		if(value.null() == false)	
   		{
  +			if(0 != executionContext.getTraceListeners())
  +			{
  +				fireSelectionEvent(executionContext, sourceNode, value);
  +			}
  +
   			const XObject::eObjectType	type = value->getType();
   
   			if (XObject::eTypeNull != type)