Revision: 41290
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41290&view=rev
Author:   bob1961
Date:     2010-11-08 23:21:42 +0000 (Mon, 08 Nov 2010)

Log Message:
-----------
Modified _bu_struct_lookup() to consider a sp_fmt[1] of 'p' when deciding to 
move on to the next item in the bu_structparse array. This fixes breaks in the 
rt family of applications when using any of the view_parse variables.

Modified Paths:
--------------
    brlcad/trunk/src/libbu/parse.c

Modified: brlcad/trunk/src/libbu/parse.c
===================================================================
--- brlcad/trunk/src/libbu/parse.c      2010-11-08 23:15:34 UTC (rev 41289)
+++ brlcad/trunk/src/libbu/parse.c      2010-11-08 23:21:42 UTC (rev 41290)
@@ -604,7 +604,8 @@
     for (; sdp->sp_name != (char *)0; sdp++) {
 
        if (strcmp(sdp->sp_name, name) != 0     /* no name match */
-           && sdp->sp_fmt[0] != 'i')           /* no include desc */
+           && sdp->sp_fmt[1] != 'i'
+           && sdp->sp_fmt[1] != 'p')           /* no include desc */
 
            continue;
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to