Index: /trunk/psastro/src/psastroRefstarSubset.c
===================================================================
--- /trunk/psastro/src/psastroRefstarSubset.c	(revision 20037)
+++ /trunk/psastro/src/psastroRefstarSubset.c	(revision 20038)
@@ -21,5 +21,5 @@
   // is needed...
   psLogMsg ("psastro", 4, "measuring luminosity function for rawstars\n");
-  pmLumFunc *rawfunc = psastroLuminosityFunction (rawstars);
+  pmLumFunc *rawfunc = psastroLuminosityFunction (rawstars, NULL);
   if (rawfunc == NULL) {
     psLogMsg ("psastro", 4, "giving up on rawstars for this readout\n");
@@ -27,5 +27,5 @@
   }
   psLogMsg ("psastro", 4, "measuring luminosity function for refstars\n");
-  pmLumFunc *reffunc = psastroLuminosityFunction (refstars);
+  pmLumFunc *reffunc = psastroLuminosityFunction (refstars, rawfunc);
   if (reffunc == NULL) {
     psLogMsg ("psastro", 4, "giving up on refstars for this readout\n");
@@ -84,7 +84,7 @@
 /* this test is a bit sensitive to the total number of refstars or rawstars available
    watch out if:
-   - the fitted slopes are extremely different 
+   - the fitted slopes are extremely different
    - the average number of stars per bin is ~1
-   
+
    skip the cut in these cases?
 */
