Revision: 48421
          http://brlcad.svn.sourceforge.net/brlcad/?rev=48421&view=rev
Author:   starseeker
Date:     2012-01-11 18:37:10 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Add a check for tsp not being NULL - CID 274

Modified Paths:
--------------
    brlcad/trunk/src/libged/draw.c

Modified: brlcad/trunk/src/libged/draw.c
===================================================================
--- brlcad/trunk/src/libged/draw.c      2012-01-11 18:31:58 UTC (rev 48420)
+++ brlcad/trunk/src/libged/draw.c      2012-01-11 18:37:10 UTC (rev 48421)
@@ -290,7 +290,9 @@
        sp->s_soldash = dashflag;
        sp->s_Eflag = 0;        /* This is a solid */
        db_dup_full_path(&sp->s_fullpath, pathp);
-       sp->s_regionid = tsp->ts_regionid;
+       if (tsp) {
+         sp->s_regionid = tsp->ts_regionid;
+        }
        sp->s_transparency = dgcdp->transparency;
        sp->s_dmode = dgcdp->dmode;
        sp->s_hiddenLine = dgcdp->hiddenLine;

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


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to