Revision: 48479
http://brlcad.svn.sourceforge.net/brlcad/?rev=48479&view=rev
Author: starseeker
Date: 2012-01-12 01:54:22 +0000 (Thu, 12 Jan 2012)
Log Message:
-----------
Check fbp for NULL - CID 1745
Modified Paths:
--------------
brlcad/trunk/src/rt/heatgraph.c
Modified: brlcad/trunk/src/rt/heatgraph.c
===================================================================
--- brlcad/trunk/src/rt/heatgraph.c 2012-01-12 01:51:38 UTC (rev 48478)
+++ brlcad/trunk/src/rt/heatgraph.c 2012-01-12 01:54:22 UTC (rev 48479)
@@ -340,9 +340,11 @@
}
}
}
- zoomH = fb_getheight(fbp) / height;
- zoomW = fb_getwidth(fbp) / width;
- (void)fb_view(fbp, width/2, height/2, zoomH, zoomW);
+ if (fbp != FBIO_NULL) {
+ zoomH = fb_getheight(fbp) / height;
+ zoomW = fb_getwidth(fbp) / width;
+ (void)fb_view(fbp, width/2, height/2, zoomH, zoomW);
+ }
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits